Bug 18887: DBRev 18.06.00.036
[koha.git] / Koha / Schema / Result / BranchBorrowerCircRule.pm
1 use utf8;
2 package Koha::Schema::Result::BranchBorrowerCircRule;
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::BranchBorrowerCircRule
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<branch_borrower_circ_rules>
19
20 =cut
21
22 __PACKAGE__->table("branch_borrower_circ_rules");
23
24 =head1 ACCESSORS
25
26 =head2 branchcode
27
28   data_type: 'varchar'
29   is_foreign_key: 1
30   is_nullable: 0
31   size: 10
32
33 =head2 categorycode
34
35   data_type: 'varchar'
36   is_foreign_key: 1
37   is_nullable: 0
38   size: 10
39
40 =head2 maxissueqty
41
42   data_type: 'integer'
43   is_nullable: 1
44
45 =head2 maxonsiteissueqty
46
47   data_type: 'integer'
48   is_nullable: 1
49
50 =cut
51
52 __PACKAGE__->add_columns(
53   "branchcode",
54   { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
55   "categorycode",
56   { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
57   "maxissueqty",
58   { data_type => "integer", is_nullable => 1 },
59   "maxonsiteissueqty",
60   { data_type => "integer", is_nullable => 1 },
61 );
62
63 =head1 PRIMARY KEY
64
65 =over 4
66
67 =item * L</categorycode>
68
69 =item * L</branchcode>
70
71 =back
72
73 =cut
74
75 __PACKAGE__->set_primary_key("categorycode", "branchcode");
76
77 =head1 RELATIONS
78
79 =head2 branchcode
80
81 Type: belongs_to
82
83 Related object: L<Koha::Schema::Result::Branch>
84
85 =cut
86
87 __PACKAGE__->belongs_to(
88   "branchcode",
89   "Koha::Schema::Result::Branch",
90   { branchcode => "branchcode" },
91   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
92 );
93
94 =head2 categorycode
95
96 Type: belongs_to
97
98 Related object: L<Koha::Schema::Result::Category>
99
100 =cut
101
102 __PACKAGE__->belongs_to(
103   "categorycode",
104   "Koha::Schema::Result::Category",
105   { categorycode => "categorycode" },
106   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
107 );
108
109
110 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-05 14:29:17
111 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3PTe8JIjkpfp2+I/2wCVmg
112
113
114 # You can replace this text with custom content, and it will be preserved on regeneration
115 1;