Lines 57-62
foreign key from the biblio table defining which bib record this booking is on
Link Here
|
57 |
|
57 |
|
58 |
foreign key from the items table defining the specific item the patron has placed a booking for |
58 |
foreign key from the items table defining the specific item the patron has placed a booking for |
59 |
|
59 |
|
|
|
60 |
=head2 pickup_library_id |
61 |
|
62 |
data_type: 'varchar' |
63 |
is_foreign_key: 1 |
64 |
is_nullable: 1 |
65 |
size: 10 |
66 |
|
67 |
Identifier for booking pickup library |
68 |
|
60 |
=head2 start_date |
69 |
=head2 start_date |
61 |
|
70 |
|
62 |
data_type: 'datetime' |
71 |
data_type: 'datetime' |
Lines 94-99
__PACKAGE__->add_columns(
Link Here
|
94 |
}, |
103 |
}, |
95 |
"item_id", |
104 |
"item_id", |
96 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
105 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
|
|
106 |
"pickup_library_id", |
107 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
97 |
"start_date", |
108 |
"start_date", |
98 |
{ |
109 |
{ |
99 |
data_type => "datetime", |
110 |
data_type => "datetime", |
Lines 172-180
__PACKAGE__->belongs_to(
Link Here
|
172 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
183 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
173 |
); |
184 |
); |
174 |
|
185 |
|
|
|
186 |
=head2 pickup_library |
187 |
|
188 |
Type: belongs_to |
189 |
|
190 |
Related object: L<Koha::Schema::Result::Branch> |
191 |
|
192 |
=cut |
193 |
|
194 |
__PACKAGE__->belongs_to( |
195 |
"pickup_library", |
196 |
"Koha::Schema::Result::Branch", |
197 |
{ branchcode => "pickup_library_id" }, |
198 |
{ |
199 |
is_deferrable => 1, |
200 |
join_type => "LEFT", |
201 |
on_delete => "CASCADE", |
202 |
on_update => "CASCADE", |
203 |
}, |
204 |
); |
205 |
|
175 |
|
206 |
|
176 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-04 10:01:46 |
207 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-03-07 17:07:54 |
177 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LoOYu7IflBkC4+VUZLd+Tg |
208 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IEYMaWaOX+bQpm36pdTfyg |
178 |
|
209 |
|
179 |
|
210 |
|
180 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
211 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |