2 package Koha::Schema::Result::OldReserve;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::OldReserve
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<old_reserves>
22 __PACKAGE__->table("old_reserves");
40 datetime_undef_if_invalid: 1
55 =head2 notificationdate
58 datetime_undef_if_invalid: 1
64 datetime_undef_if_invalid: 1
67 =head2 cancellationdate
70 datetime_undef_if_invalid: 1
73 =head2 cancellation_reason
98 data_type: 'timestamp'
99 datetime_undef_if_invalid: 1
100 default_value: current_timestamp
112 datetime_undef_if_invalid: 1
115 =head2 expirationdate
118 datetime_undef_if_invalid: 1
121 =head2 lowestPriority
123 accessor: 'lowest_priority'
136 data_type: 'datetime'
137 datetime_undef_if_invalid: 1
147 =head2 item_level_hold
161 __PACKAGE__->add_columns(
163 { data_type => "integer", is_nullable => 0 },
165 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
167 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
169 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
171 { data_type => "varchar", is_nullable => 1, size => 10 },
173 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
175 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
177 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
178 "cancellation_reason",
179 { data_type => "varchar", is_nullable => 1, size => 80 },
181 { data_type => "longtext", is_nullable => 1 },
183 { data_type => "smallint", default_value => 1, is_nullable => 0 },
185 { data_type => "varchar", is_nullable => 1, size => 1 },
188 data_type => "timestamp",
189 datetime_undef_if_invalid => 1,
190 default_value => \"current_timestamp",
194 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
196 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
198 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
201 accessor => "lowest_priority",
202 data_type => "tinyint",
207 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
210 data_type => "datetime",
211 datetime_undef_if_invalid => 1,
215 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
217 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
219 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
226 =item * L</reserve_id>
232 __PACKAGE__->set_primary_key("reserve_id");
240 Related object: L<Koha::Schema::Result::Biblio>
244 __PACKAGE__->belongs_to(
246 "Koha::Schema::Result::Biblio",
247 { biblionumber => "biblionumber" },
251 on_delete => "SET NULL",
252 on_update => "SET NULL",
256 =head2 borrowernumber
260 Related object: L<Koha::Schema::Result::Borrower>
264 __PACKAGE__->belongs_to(
266 "Koha::Schema::Result::Borrower",
267 { borrowernumber => "borrowernumber" },
271 on_delete => "SET NULL",
272 on_update => "SET NULL",
280 Related object: L<Koha::Schema::Result::Item>
284 __PACKAGE__->belongs_to(
286 "Koha::Schema::Result::Item",
287 { itemnumber => "itemnumber" },
291 on_delete => "SET NULL",
292 on_update => "SET NULL",
300 Related object: L<Koha::Schema::Result::Itemtype>
304 __PACKAGE__->belongs_to(
306 "Koha::Schema::Result::Itemtype",
307 { itemtype => "itemtype" },
311 on_delete => "SET NULL",
312 on_update => "SET NULL",
317 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-08-19 19:20:37
318 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Dov8h1qPOTI4pWBFUuaV2Q
320 __PACKAGE__->add_columns(
321 '+item_level_hold' => { is_boolean => 1 },
322 '+lowestPriority' => { is_boolean => 1 },
323 '+suspend' => { is_boolean => 1 },
324 '+non_priority' => { is_boolean => 1 }
327 sub koha_object_class {
330 sub koha_objects_class {