Lines 32-52
__PACKAGE__->table("circulation_rules");
Link Here
|
32 |
=head2 branchcode |
32 |
=head2 branchcode |
33 |
|
33 |
|
34 |
data_type: 'varchar' |
34 |
data_type: 'varchar' |
35 |
is_foreign_key: 1 |
|
|
36 |
is_nullable: 1 |
35 |
is_nullable: 1 |
37 |
size: 10 |
36 |
size: 10 |
38 |
|
37 |
|
39 |
=head2 categorycode |
38 |
=head2 categorycode |
40 |
|
39 |
|
41 |
data_type: 'varchar' |
40 |
data_type: 'varchar' |
42 |
is_foreign_key: 1 |
|
|
43 |
is_nullable: 1 |
41 |
is_nullable: 1 |
44 |
size: 10 |
42 |
size: 10 |
45 |
|
43 |
|
46 |
=head2 itemtype |
44 |
=head2 itemtype |
47 |
|
45 |
|
48 |
data_type: 'varchar' |
46 |
data_type: 'varchar' |
49 |
is_foreign_key: 1 |
|
|
50 |
is_nullable: 1 |
47 |
is_nullable: 1 |
51 |
size: 10 |
48 |
size: 10 |
52 |
|
49 |
|
Lines 68-78
__PACKAGE__->add_columns(
Link Here
|
68 |
"id", |
65 |
"id", |
69 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
66 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
70 |
"branchcode", |
67 |
"branchcode", |
71 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
68 |
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
72 |
"categorycode", |
69 |
"categorycode", |
73 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
70 |
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
74 |
"itemtype", |
71 |
"itemtype", |
75 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
72 |
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
76 |
"rule_name", |
73 |
"rule_name", |
77 |
{ data_type => "varchar", is_nullable => 0, size => 32 }, |
74 |
{ data_type => "varchar", is_nullable => 0, size => 32 }, |
78 |
"rule_value", |
75 |
"rule_value", |
Lines 109-179
__PACKAGE__->set_primary_key("id");
Link Here
|
109 |
|
106 |
|
110 |
__PACKAGE__->add_unique_constraint("branchcode_2", ["branchcode", "categorycode", "itemtype"]); |
107 |
__PACKAGE__->add_unique_constraint("branchcode_2", ["branchcode", "categorycode", "itemtype"]); |
111 |
|
108 |
|
112 |
=head1 RELATIONS |
|
|
113 |
|
109 |
|
114 |
=head2 branchcode |
110 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-07-03 15:35:15 |
115 |
|
111 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ok1AzADM8/wcfU9xS7LgNQ |
116 |
Type: belongs_to |
|
|
117 |
|
118 |
Related object: L<Koha::Schema::Result::Branch> |
119 |
|
120 |
=cut |
121 |
|
122 |
__PACKAGE__->belongs_to( |
123 |
"branchcode", |
124 |
"Koha::Schema::Result::Branch", |
125 |
{ branchcode => "branchcode" }, |
126 |
{ |
127 |
is_deferrable => 1, |
128 |
join_type => "LEFT", |
129 |
on_delete => "CASCADE", |
130 |
on_update => "CASCADE", |
131 |
}, |
132 |
); |
133 |
|
134 |
=head2 categorycode |
135 |
|
136 |
Type: belongs_to |
137 |
|
138 |
Related object: L<Koha::Schema::Result::Category> |
139 |
|
140 |
=cut |
141 |
|
142 |
__PACKAGE__->belongs_to( |
143 |
"categorycode", |
144 |
"Koha::Schema::Result::Category", |
145 |
{ categorycode => "categorycode" }, |
146 |
{ |
147 |
is_deferrable => 1, |
148 |
join_type => "LEFT", |
149 |
on_delete => "CASCADE", |
150 |
on_update => "CASCADE", |
151 |
}, |
152 |
); |
153 |
|
154 |
=head2 itemtype |
155 |
|
156 |
Type: belongs_to |
157 |
|
158 |
Related object: L<Koha::Schema::Result::Itemtype> |
159 |
|
160 |
=cut |
161 |
|
162 |
__PACKAGE__->belongs_to( |
163 |
"itemtype", |
164 |
"Koha::Schema::Result::Itemtype", |
165 |
{ itemtype => "itemtype" }, |
166 |
{ |
167 |
is_deferrable => 1, |
168 |
join_type => "LEFT", |
169 |
on_delete => "CASCADE", |
170 |
on_update => "CASCADE", |
171 |
}, |
172 |
); |
173 |
|
174 |
|
175 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-28 04:08:15 |
176 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cp5jbv46L3LtPVxSla8dpA |
177 |
|
112 |
|
178 |
|
113 |
|
179 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
114 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |