|
Lines 35-40
unique identifier for the overduerules
Link Here
|
| 35 |
|
35 |
|
| 36 |
data_type: 'varchar' |
36 |
data_type: 'varchar' |
| 37 |
default_value: (empty string) |
37 |
default_value: (empty string) |
|
|
38 |
is_foreign_key: 1 |
| 38 |
is_nullable: 0 |
39 |
is_nullable: 0 |
| 39 |
size: 10 |
40 |
size: 10 |
| 40 |
|
41 |
|
|
Lines 44-49
foreign key from the branches table to define which branch this rule is for (if
Link Here
|
| 44 |
|
45 |
|
| 45 |
data_type: 'varchar' |
46 |
data_type: 'varchar' |
| 46 |
default_value: (empty string) |
47 |
default_value: (empty string) |
|
|
48 |
is_foreign_key: 1 |
| 47 |
is_nullable: 0 |
49 |
is_nullable: 0 |
| 48 |
size: 10 |
50 |
size: 10 |
| 49 |
|
51 |
|
|
Lines 124-132
__PACKAGE__->add_columns(
Link Here
|
| 124 |
"overduerules_id", |
126 |
"overduerules_id", |
| 125 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
127 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
| 126 |
"branchcode", |
128 |
"branchcode", |
| 127 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, |
129 |
{ |
|
|
130 |
data_type => "varchar", |
| 131 |
default_value => "", |
| 132 |
is_foreign_key => 1, |
| 133 |
is_nullable => 0, |
| 134 |
size => 10, |
| 135 |
}, |
| 128 |
"categorycode", |
136 |
"categorycode", |
| 129 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, |
137 |
{ |
|
|
138 |
data_type => "varchar", |
| 139 |
default_value => "", |
| 140 |
is_foreign_key => 1, |
| 141 |
is_nullable => 0, |
| 142 |
size => 10, |
| 143 |
}, |
| 130 |
"delay1", |
144 |
"delay1", |
| 131 |
{ data_type => "integer", is_nullable => 1 }, |
145 |
{ data_type => "integer", is_nullable => 1 }, |
| 132 |
"letter1", |
146 |
"letter1", |
|
Lines 177-182
__PACKAGE__->add_unique_constraint("overduerules_branch_cat", ["branchcode", "ca
Link Here
|
| 177 |
|
191 |
|
| 178 |
=head1 RELATIONS |
192 |
=head1 RELATIONS |
| 179 |
|
193 |
|
|
|
194 |
=head2 branchcode |
| 195 |
|
| 196 |
Type: belongs_to |
| 197 |
|
| 198 |
Related object: L<Koha::Schema::Result::Branch> |
| 199 |
|
| 200 |
=cut |
| 201 |
|
| 202 |
__PACKAGE__->belongs_to( |
| 203 |
"branchcode", |
| 204 |
"Koha::Schema::Result::Branch", |
| 205 |
{ branchcode => "branchcode" }, |
| 206 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
| 207 |
); |
| 208 |
|
| 209 |
=head2 categorycode |
| 210 |
|
| 211 |
Type: belongs_to |
| 212 |
|
| 213 |
Related object: L<Koha::Schema::Result::Category> |
| 214 |
|
| 215 |
=cut |
| 216 |
|
| 217 |
__PACKAGE__->belongs_to( |
| 218 |
"categorycode", |
| 219 |
"Koha::Schema::Result::Category", |
| 220 |
{ categorycode => "categorycode" }, |
| 221 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
| 222 |
); |
| 223 |
|
| 180 |
=head2 overduerules_transport_types |
224 |
=head2 overduerules_transport_types |
| 181 |
|
225 |
|
| 182 |
Type: has_many |
226 |
Type: has_many |
|
Lines 193-200
__PACKAGE__->has_many(
Link Here
|
| 193 |
); |
237 |
); |
| 194 |
|
238 |
|
| 195 |
|
239 |
|
| 196 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-05-06 16:22:12 |
240 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-11-13 15:03:12 |
| 197 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/1ZL98jFwZ5PyG4sYSziiA |
241 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aMDpv7I3wxwcwuhe/gANOg |
| 198 |
|
242 |
|
| 199 |
__PACKAGE__->add_columns( |
243 |
__PACKAGE__->add_columns( |
| 200 |
'+debarred1' => { is_boolean => 1 }, |
244 |
'+debarred1' => { is_boolean => 1 }, |
| 201 |
- |
|
|