|
Lines 30-35
__PACKAGE__->table("hold_groups");
Link Here
|
| 30 |
is_auto_increment: 1 |
30 |
is_auto_increment: 1 |
| 31 |
is_nullable: 0 |
31 |
is_nullable: 0 |
| 32 |
|
32 |
|
|
|
33 |
=head2 borrowernumber |
| 34 |
|
| 35 |
data_type: 'integer' |
| 36 |
is_foreign_key: 1 |
| 37 |
is_nullable: 1 |
| 38 |
|
| 39 |
foreign key, linking this to the borrowers table |
| 40 |
|
| 41 |
=head2 visual_hold_group_id |
| 42 |
|
| 43 |
data_type: 'integer' |
| 44 |
is_nullable: 1 |
| 45 |
|
| 46 |
visual ID for this hold group, in the context of the related patron |
| 47 |
|
| 33 |
=cut |
48 |
=cut |
| 34 |
|
49 |
|
| 35 |
__PACKAGE__->add_columns( |
50 |
__PACKAGE__->add_columns( |
|
Lines 40-45
__PACKAGE__->add_columns(
Link Here
|
| 40 |
is_auto_increment => 1, |
55 |
is_auto_increment => 1, |
| 41 |
is_nullable => 0, |
56 |
is_nullable => 0, |
| 42 |
}, |
57 |
}, |
|
|
58 |
"borrowernumber", |
| 59 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
| 60 |
"visual_hold_group_id", |
| 61 |
{ data_type => "integer", is_nullable => 1 }, |
| 43 |
); |
62 |
); |
| 44 |
|
63 |
|
| 45 |
=head1 PRIMARY KEY |
64 |
=head1 PRIMARY KEY |
|
Lines 56-61
__PACKAGE__->set_primary_key("hold_group_id");
Link Here
|
| 56 |
|
75 |
|
| 57 |
=head1 RELATIONS |
76 |
=head1 RELATIONS |
| 58 |
|
77 |
|
|
|
78 |
=head2 borrowernumber |
| 79 |
|
| 80 |
Type: belongs_to |
| 81 |
|
| 82 |
Related object: L<Koha::Schema::Result::Borrower> |
| 83 |
|
| 84 |
=cut |
| 85 |
|
| 86 |
__PACKAGE__->belongs_to( |
| 87 |
"borrowernumber", |
| 88 |
"Koha::Schema::Result::Borrower", |
| 89 |
{ borrowernumber => "borrowernumber" }, |
| 90 |
{ |
| 91 |
is_deferrable => 1, |
| 92 |
join_type => "LEFT", |
| 93 |
on_delete => "CASCADE", |
| 94 |
on_update => "RESTRICT", |
| 95 |
}, |
| 96 |
); |
| 97 |
|
| 59 |
=head2 old_reserves |
98 |
=head2 old_reserves |
| 60 |
|
99 |
|
| 61 |
Type: has_many |
100 |
Type: has_many |
|
Lines 87-94
__PACKAGE__->has_many(
Link Here
|
| 87 |
); |
126 |
); |
| 88 |
|
127 |
|
| 89 |
|
128 |
|
| 90 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-09-03 17:08:22 |
129 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-16 08:38:47 |
| 91 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m3/7K38O11278k5glHlXAA |
130 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:K942uOr52EEdt/f3Sm6i5Q |
| 92 |
|
131 |
|
| 93 |
|
132 |
|
| 94 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
133 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
| 95 |
- |
|
|