2 package Koha::Schema::Result::ClubHold;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ClubHold
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<club_holds>
22 __PACKAGE__->table("club_holds");
38 id for the club the hold was generated for
46 id for the bibliographic record the hold has been placed against
54 If item-level, the id for the item the hold has been placed agains
58 data_type: 'timestamp'
59 datetime_undef_if_invalid: 1
60 default_value: current_timestamp
63 Timestamp for the placed hold
67 __PACKAGE__->add_columns(
69 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
71 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
73 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
75 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
78 data_type => "timestamp",
79 datetime_undef_if_invalid => 1,
80 default_value => \"current_timestamp",
95 __PACKAGE__->set_primary_key("id");
103 Related object: L<Koha::Schema::Result::Biblio>
107 __PACKAGE__->belongs_to(
109 "Koha::Schema::Result::Biblio",
110 { biblionumber => "biblio_id" },
111 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
118 Related object: L<Koha::Schema::Result::Club>
122 __PACKAGE__->belongs_to(
124 "Koha::Schema::Result::Club",
126 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
129 =head2 club_holds_to_patron_holds
133 Related object: L<Koha::Schema::Result::ClubHoldsToPatronHold>
137 __PACKAGE__->has_many(
138 "club_holds_to_patron_holds",
139 "Koha::Schema::Result::ClubHoldsToPatronHold",
140 { "foreign.club_hold_id" => "self.id" },
141 { cascade_copy => 0, cascade_delete => 0 },
148 Related object: L<Koha::Schema::Result::Item>
152 __PACKAGE__->belongs_to(
154 "Koha::Schema::Result::Item",
155 { itemnumber => "item_id" },
159 on_delete => "CASCADE",
160 on_update => "CASCADE",
165 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
166 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dGkIYbw9CX0LqiH8XmuGAQ
168 sub koha_objects_class {
171 sub koha_object_class {