2 package Koha::Schema::Result::Recall;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Recall
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<recalls>
22 __PACKAGE__->table("recalls");
42 datetime_undef_if_invalid: 1
59 =head2 cancellationdate
62 datetime_undef_if_invalid: 1
67 data_type: 'mediumtext'
83 data_type: 'timestamp'
84 datetime_undef_if_invalid: 1
85 default_value: current_timestamp
97 datetime_undef_if_invalid: 1
100 =head2 expirationdate
102 data_type: 'datetime'
103 datetime_undef_if_invalid: 1
111 =head2 item_level_recall
119 __PACKAGE__->add_columns(
121 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
124 data_type => "integer",
131 data_type => "datetime",
132 datetime_undef_if_invalid => 1,
137 data_type => "integer",
143 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
146 data_type => "datetime",
147 datetime_undef_if_invalid => 1,
151 { data_type => "mediumtext", is_nullable => 1 },
153 { data_type => "smallint", is_nullable => 1 },
155 { data_type => "varchar", is_nullable => 1, size => 1 },
158 data_type => "timestamp",
159 datetime_undef_if_invalid => 1,
160 default_value => \"current_timestamp",
164 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
167 data_type => "datetime",
168 datetime_undef_if_invalid => 1,
173 data_type => "datetime",
174 datetime_undef_if_invalid => 1,
178 { data_type => "tinyint", is_nullable => 1 },
180 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
187 =item * L</recall_id>
193 __PACKAGE__->set_primary_key("recall_id");
201 Related object: L<Koha::Schema::Result::Biblio>
205 __PACKAGE__->belongs_to(
207 "Koha::Schema::Result::Biblio",
208 { biblionumber => "biblionumber" },
209 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
212 =head2 borrowernumber
216 Related object: L<Koha::Schema::Result::Borrower>
220 __PACKAGE__->belongs_to(
222 "Koha::Schema::Result::Borrower",
223 { borrowernumber => "borrowernumber" },
224 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
231 Related object: L<Koha::Schema::Result::Branch>
235 __PACKAGE__->belongs_to(
237 "Koha::Schema::Result::Branch",
238 { branchcode => "branchcode" },
242 on_delete => "CASCADE",
243 on_update => "CASCADE",
251 Related object: L<Koha::Schema::Result::Item>
255 __PACKAGE__->belongs_to(
257 "Koha::Schema::Result::Item",
258 { itemnumber => "itemnumber" },
262 on_delete => "CASCADE",
263 on_update => "CASCADE",
268 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-10-14 15:07:03
269 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3OJBkRJzqxZpuRp0GYGixw
271 __PACKAGE__->add_columns(
272 '+old' => { is_boolean => 1 },
273 '+item_level_recall' => { is_boolean => 1 },