Lines 23-28
__PACKAGE__->table("overduerules");
Link Here
|
23 |
|
23 |
|
24 |
=head1 ACCESSORS |
24 |
=head1 ACCESSORS |
25 |
|
25 |
|
|
|
26 |
=head2 overduerules_id |
27 |
|
28 |
data_type: 'integer' |
29 |
is_auto_increment: 1 |
30 |
is_nullable: 0 |
31 |
|
26 |
=head2 branchcode |
32 |
=head2 branchcode |
27 |
|
33 |
|
28 |
data_type: 'varchar' |
34 |
data_type: 'varchar' |
Lines 93-98
__PACKAGE__->table("overduerules");
Link Here
|
93 |
=cut |
99 |
=cut |
94 |
|
100 |
|
95 |
__PACKAGE__->add_columns( |
101 |
__PACKAGE__->add_columns( |
|
|
102 |
"overduerules_id", |
103 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
96 |
"branchcode", |
104 |
"branchcode", |
97 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, |
105 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, |
98 |
"categorycode", |
106 |
"categorycode", |
Lines 121-126
__PACKAGE__->add_columns(
Link Here
|
121 |
|
129 |
|
122 |
=over 4 |
130 |
=over 4 |
123 |
|
131 |
|
|
|
132 |
=item * L</overduerules_id> |
133 |
|
134 |
=back |
135 |
|
136 |
=cut |
137 |
|
138 |
__PACKAGE__->set_primary_key("overduerules_id"); |
139 |
|
140 |
=head1 UNIQUE CONSTRAINTS |
141 |
|
142 |
=head2 C<overduerules_branch_cat> |
143 |
|
144 |
=over 4 |
145 |
|
124 |
=item * L</branchcode> |
146 |
=item * L</branchcode> |
125 |
|
147 |
|
126 |
=item * L</categorycode> |
148 |
=item * L</categorycode> |
Lines 129-135
__PACKAGE__->add_columns(
Link Here
|
129 |
|
151 |
|
130 |
=cut |
152 |
=cut |
131 |
|
153 |
|
132 |
__PACKAGE__->set_primary_key("branchcode", "categorycode"); |
154 |
__PACKAGE__->add_unique_constraint("overduerules_branch_cat", ["branchcode", "categorycode"]); |
133 |
|
155 |
|
134 |
=head1 RELATIONS |
156 |
=head1 RELATIONS |
135 |
|
157 |
|
Lines 144-159
Related object: L<Koha::Schema::Result::OverduerulesTransportType>
Link Here
|
144 |
__PACKAGE__->has_many( |
166 |
__PACKAGE__->has_many( |
145 |
"overduerules_transport_types", |
167 |
"overduerules_transport_types", |
146 |
"Koha::Schema::Result::OverduerulesTransportType", |
168 |
"Koha::Schema::Result::OverduerulesTransportType", |
147 |
{ |
169 |
{ "foreign.overduerules_id" => "self.overduerules_id" }, |
148 |
"foreign.branchcode" => "self.branchcode", |
|
|
149 |
"foreign.categorycode" => "self.categorycode", |
150 |
}, |
151 |
{ cascade_copy => 0, cascade_delete => 0 }, |
170 |
{ cascade_copy => 0, cascade_delete => 0 }, |
152 |
); |
171 |
); |
153 |
|
172 |
|
154 |
|
173 |
|
155 |
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-02 18:04:32 |
174 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-01-06 12:00:28 |
156 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zQK4gTxkrPPwJzujbZxxdg |
175 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Opfa1YZ3IeQRRbyrbKAkNQ |
157 |
|
176 |
|
158 |
|
177 |
|
159 |
# You can replace this text with custom content, and it will be preserved on regeneration |
178 |
# You can replace this text with custom content, and it will be preserved on regeneration |