Lines 54-59
foreign key, linking this to the borrowers table for the user who checked out th
Link Here
|
54 |
|
54 |
|
55 |
foreign key, linking this to the items table for the item that was checked out |
55 |
foreign key, linking this to the items table for the item that was checked out |
56 |
|
56 |
|
|
|
57 |
=head2 booking_id |
58 |
|
59 |
data_type: 'integer' |
60 |
is_foreign_key: 1 |
61 |
is_nullable: 1 |
62 |
|
63 |
foreign key linking this checkout to the booking it fulfilled |
64 |
|
57 |
=head2 date_due |
65 |
=head2 date_due |
58 |
|
66 |
|
59 |
data_type: 'datetime' |
67 |
data_type: 'datetime' |
Lines 184-189
__PACKAGE__->add_columns(
Link Here
|
184 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
192 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
185 |
"itemnumber", |
193 |
"itemnumber", |
186 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
194 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
|
|
195 |
"booking_id", |
196 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
187 |
"date_due", |
197 |
"date_due", |
188 |
{ |
198 |
{ |
189 |
data_type => "datetime", |
199 |
data_type => "datetime", |
Lines 270-275
__PACKAGE__->has_many(
Link Here
|
270 |
{ cascade_copy => 0, cascade_delete => 0 }, |
280 |
{ cascade_copy => 0, cascade_delete => 0 }, |
271 |
); |
281 |
); |
272 |
|
282 |
|
|
|
283 |
=head2 booking |
284 |
|
285 |
Type: belongs_to |
286 |
|
287 |
Related object: L<Koha::Schema::Result::Booking> |
288 |
|
289 |
=cut |
290 |
|
291 |
__PACKAGE__->belongs_to( |
292 |
"booking", |
293 |
"Koha::Schema::Result::Booking", |
294 |
{ booking_id => "booking_id" }, |
295 |
{ |
296 |
is_deferrable => 1, |
297 |
join_type => "LEFT", |
298 |
on_delete => "SET NULL", |
299 |
on_update => "CASCADE", |
300 |
}, |
301 |
); |
302 |
|
273 |
=head2 borrowernumber |
303 |
=head2 borrowernumber |
274 |
|
304 |
|
275 |
Type: belongs_to |
305 |
Type: belongs_to |
Lines 331-338
__PACKAGE__->belongs_to(
Link Here
|
331 |
); |
361 |
); |
332 |
|
362 |
|
333 |
|
363 |
|
334 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-05-06 16:22:12 |
364 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-08-18 12:37:32 |
335 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bO+nRkR4QDXrb5wmEOz9mw |
365 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0bxRaYxSPgxrcbVn6+F6Tg |
336 |
|
366 |
|
337 |
__PACKAGE__->add_columns( |
367 |
__PACKAGE__->add_columns( |
338 |
'+auto_renew' => { is_boolean => 1 }, |
368 |
'+auto_renew' => { is_boolean => 1 }, |
339 |
- |
|
|