2 package Koha
::Schema
::Result
::ClubHoldsToPatronHold
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ClubHoldsToPatronHold
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<club_holds_to_patron_holds>
22 __PACKAGE__
->table("club_holds_to_patron_holds");
53 extra: {list => ["damaged","ageRestricted","itemAlreadyOnHold","tooManyHoldsForThisRecord","tooManyReservesToday","tooManyReserves","notReservable","cannotReserveFromOtherBranches","libraryNotFound","libraryNotPickupLocation","cannotBeTransferred"]}
64 __PACKAGE__
->add_columns(
66 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
68 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
70 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
72 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
81 "tooManyHoldsForThisRecord",
82 "tooManyReservesToday",
85 "cannotReserveFromOtherBranches",
87 "libraryNotPickupLocation",
88 "cannotBeTransferred",
94 { data_type
=> "varchar", is_nullable
=> 1, size
=> 100 },
107 __PACKAGE__
->set_primary_key("id");
115 Related object: L<Koha::Schema::Result::ClubHold>
119 __PACKAGE__
->belongs_to(
121 "Koha::Schema::Result::ClubHold",
122 { id
=> "club_hold_id" },
123 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
130 Related object: L<Koha::Schema::Result::Reserve>
134 __PACKAGE__
->belongs_to(
136 "Koha::Schema::Result::Reserve",
137 { reserve_id
=> "hold_id" },
141 on_delete
=> "CASCADE",
142 on_update
=> "CASCADE",
150 Related object: L<Koha::Schema::Result::Borrower>
154 __PACKAGE__
->belongs_to(
156 "Koha::Schema::Result::Borrower",
157 { borrowernumber
=> "patron_id" },
158 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
162 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-01 07:08:47
163 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/T626DfqUi7SnXOyieUzYw
166 # You can replace this text with custom code or comments, and it will be preserved on regeneration