View | Details | Raw Unified | Return to bug 5670
Collapse All | Expand All

(-)a/Koha/Schema/Result/Borrower.pm (-4 / +64 lines)
Lines 419-425 __PACKAGE__->table("borrowers"); Link Here
419
  data_type: 'timestamp'
419
  data_type: 'timestamp'
420
  datetime_undef_if_invalid: 1
420
  datetime_undef_if_invalid: 1
421
  default_value: current_timestamp
421
  default_value: current_timestamp
422
  is_nullable: 0
422
  is_nullable: 1
423
423
424
=head2 lastseen
424
=head2 lastseen
425
425
Lines 608-614 __PACKAGE__->add_columns( Link Here
608
    data_type => "timestamp",
608
    data_type => "timestamp",
609
    datetime_undef_if_invalid => 1,
609
    datetime_undef_if_invalid => 1,
610
    default_value => \"current_timestamp",
610
    default_value => \"current_timestamp",
611
    is_nullable => 0,
611
    is_nullable => 1,
612
  },
612
  },
613
  "lastseen",
613
  "lastseen",
614
  {
614
  {
Lines 898-903 __PACKAGE__->has_many( Link Here
898
  { cascade_copy => 0, cascade_delete => 0 },
898
  { cascade_copy => 0, cascade_delete => 0 },
899
);
899
);
900
900
901
=head2 housebound_profile
902
903
Type: might_have
904
905
Related object: L<Koha::Schema::Result::HouseboundProfile>
906
907
=cut
908
909
__PACKAGE__->might_have(
910
  "housebound_profile",
911
  "Koha::Schema::Result::HouseboundProfile",
912
  { "foreign.borrowernumber" => "self.borrowernumber" },
913
  { cascade_copy => 0, cascade_delete => 0 },
914
);
915
916
=head2 housebound_role
917
918
Type: might_have
919
920
Related object: L<Koha::Schema::Result::HouseboundRole>
921
922
=cut
923
924
__PACKAGE__->might_have(
925
  "housebound_role",
926
  "Koha::Schema::Result::HouseboundRole",
927
  { "foreign.borrowernumber_id" => "self.borrowernumber" },
928
  { cascade_copy => 0, cascade_delete => 0 },
929
);
930
931
=head2 housebound_visit_chooser_brwnumbers
932
933
Type: has_many
934
935
Related object: L<Koha::Schema::Result::HouseboundVisit>
936
937
=cut
938
939
__PACKAGE__->has_many(
940
  "housebound_visit_chooser_brwnumbers",
941
  "Koha::Schema::Result::HouseboundVisit",
942
  { "foreign.chooser_brwnumber" => "self.borrowernumber" },
943
  { cascade_copy => 0, cascade_delete => 0 },
944
);
945
946
=head2 housebound_visit_deliverer_brwnumbers
947
948
Type: has_many
949
950
Related object: L<Koha::Schema::Result::HouseboundVisit>
951
952
=cut
953
954
__PACKAGE__->has_many(
955
  "housebound_visit_deliverer_brwnumbers",
956
  "Koha::Schema::Result::HouseboundVisit",
957
  { "foreign.deliverer_brwnumber" => "self.borrowernumber" },
958
  { cascade_copy => 0, cascade_delete => 0 },
959
);
960
901
=head2 issues
961
=head2 issues
902
962
903
Type: has_many
963
Type: has_many
Lines 1244-1251 Composing rels: L</aqorder_users> -> ordernumber Link Here
1244
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1304
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1245
1305
1246
1306
1247
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-09-13 17:32:29
1307
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2016-10-13 07:29:58
1248
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:23Yg0CXG1z8f5Bx92JCVoQ
1308
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gTAVqirjg5ZckpVtRTXHOQ
1249
1309
1250
__PACKAGE__->belongs_to(
1310
__PACKAGE__->belongs_to(
1251
    "guarantor",
1311
    "guarantor",
(-)a/Koha/Schema/Result/HouseboundRole.pm (-1 / +90 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::HouseboundRole;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::HouseboundRole
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<housebound_role>
19
20
=cut
21
22
__PACKAGE__->table("housebound_role");
23
24
=head1 ACCESSORS
25
26
=head2 borrowernumber_id
27
28
  data_type: 'integer'
29
  is_foreign_key: 1
30
  is_nullable: 0
31
32
=head2 housebound_chooser
33
34
  data_type: 'tinyint'
35
  default_value: 0
36
  is_nullable: 0
37
38
=head2 housebound_deliverer
39
40
  data_type: 'tinyint'
41
  default_value: 0
42
  is_nullable: 0
43
44
=cut
45
46
__PACKAGE__->add_columns(
47
  "borrowernumber_id",
48
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
49
  "housebound_chooser",
50
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
51
  "housebound_deliverer",
52
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
53
);
54
55
=head1 PRIMARY KEY
56
57
=over 4
58
59
=item * L</borrowernumber_id>
60
61
=back
62
63
=cut
64
65
__PACKAGE__->set_primary_key("borrowernumber_id");
66
67
=head1 RELATIONS
68
69
=head2 borrowernumber
70
71
Type: belongs_to
72
73
Related object: L<Koha::Schema::Result::Borrower>
74
75
=cut
76
77
__PACKAGE__->belongs_to(
78
  "borrowernumber",
79
  "Koha::Schema::Result::Borrower",
80
  { borrowernumber => "borrowernumber_id" },
81
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
82
);
83
84
85
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2016-10-13 07:29:58
86
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oRdlsug404i4vErycF4bgg
87
88
89
# You can replace this text with custom code or comments, and it will be preserved on regeneration
90
1;

Return to bug 5670