Lines 1-122
Link Here
|
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 |
=head2 max_holds |
51 |
|
52 |
data_type: 'integer' |
53 |
is_nullable: 1 |
54 |
|
55 |
=cut |
56 |
|
57 |
__PACKAGE__->add_columns( |
58 |
"branchcode", |
59 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, |
60 |
"categorycode", |
61 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, |
62 |
"maxissueqty", |
63 |
{ data_type => "integer", is_nullable => 1 }, |
64 |
"maxonsiteissueqty", |
65 |
{ data_type => "integer", is_nullable => 1 }, |
66 |
"max_holds", |
67 |
{ data_type => "integer", is_nullable => 1 }, |
68 |
); |
69 |
|
70 |
=head1 PRIMARY KEY |
71 |
|
72 |
=over 4 |
73 |
|
74 |
=item * L</categorycode> |
75 |
|
76 |
=item * L</branchcode> |
77 |
|
78 |
=back |
79 |
|
80 |
=cut |
81 |
|
82 |
__PACKAGE__->set_primary_key("categorycode", "branchcode"); |
83 |
|
84 |
=head1 RELATIONS |
85 |
|
86 |
=head2 branchcode |
87 |
|
88 |
Type: belongs_to |
89 |
|
90 |
Related object: L<Koha::Schema::Result::Branch> |
91 |
|
92 |
=cut |
93 |
|
94 |
__PACKAGE__->belongs_to( |
95 |
"branchcode", |
96 |
"Koha::Schema::Result::Branch", |
97 |
{ branchcode => "branchcode" }, |
98 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
99 |
); |
100 |
|
101 |
=head2 categorycode |
102 |
|
103 |
Type: belongs_to |
104 |
|
105 |
Related object: L<Koha::Schema::Result::Category> |
106 |
|
107 |
=cut |
108 |
|
109 |
__PACKAGE__->belongs_to( |
110 |
"categorycode", |
111 |
"Koha::Schema::Result::Category", |
112 |
{ categorycode => "categorycode" }, |
113 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
114 |
); |
115 |
|
116 |
|
117 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-27 14:54:53 |
118 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sMWYrZafhg3InWiWPZ2Axw |
119 |
|
120 |
|
121 |
# You can replace this text with custom content, and it will be preserved on regeneration |
122 |
1; |