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
60 =head2 notificationdate
63 datetime_undef_if_invalid: 1
69 datetime_undef_if_invalid: 1
72 =head2 cancellationdate
75 datetime_undef_if_invalid: 1
78 =head2 cancellation_reason
103 data_type: 'timestamp'
104 datetime_undef_if_invalid: 1
105 default_value: current_timestamp
117 datetime_undef_if_invalid: 1
120 =head2 expirationdate
123 datetime_undef_if_invalid: 1
126 =head2 lowestPriority
128 accessor: 'lowest_priority'
141 data_type: 'datetime'
142 datetime_undef_if_invalid: 1
152 =head2 item_level_hold
166 __PACKAGE__
->add_columns(
168 { data_type
=> "integer", is_nullable
=> 0 },
170 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
172 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
174 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
176 { data_type
=> "varchar", is_nullable
=> 1, size
=> 10 },
178 { data_type
=> "integer", is_nullable
=> 1 },
180 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
182 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
184 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
185 "cancellation_reason",
186 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
188 { data_type
=> "longtext", is_nullable
=> 1 },
190 { data_type
=> "smallint", default_value
=> 1, is_nullable
=> 0 },
192 { data_type
=> "varchar", is_nullable
=> 1, size
=> 1 },
195 data_type
=> "timestamp",
196 datetime_undef_if_invalid
=> 1,
197 default_value
=> \"current_timestamp
",
201 { data_type => "integer
", is_foreign_key => 1, is_nullable => 1 },
203 { data_type => "date
", datetime_undef_if_invalid => 1, is_nullable => 1 },
205 { data_type => "date
", datetime_undef_if_invalid => 1, is_nullable => 1 },
208 accessor => "lowest_priority
",
209 data_type => "tinyint
",
214 { data_type => "tinyint
", default_value => 0, is_nullable => 0 },
217 data_type => "datetime
",
218 datetime_undef_if_invalid => 1,
222 { data_type => "varchar
", is_foreign_key => 1, is_nullable => 1, size => 10 },
224 { data_type => "tinyint
", default_value => 0, is_nullable => 0 },
226 { data_type => "tinyint
", default_value => 0, is_nullable => 0 },
233 =item * L</reserve_id>
239 __PACKAGE__->set_primary_key("reserve_id
");
247 Related object: L<Koha::Schema::Result::Biblio>
251 __PACKAGE__->belongs_to(
253 "Koha
::Schema
::Result
::Biblio
",
254 { biblionumber => "biblionumber
" },
258 on_delete => "SET NULL
",
259 on_update => "SET NULL
",
263 =head2 borrowernumber
267 Related object: L<Koha::Schema::Result::Borrower>
271 __PACKAGE__->belongs_to(
273 "Koha
::Schema
::Result
::Borrower
",
274 { borrowernumber => "borrowernumber
" },
278 on_delete => "SET NULL
",
279 on_update => "SET NULL
",
287 Related object: L<Koha::Schema::Result::Item>
291 __PACKAGE__->belongs_to(
293 "Koha
::Schema
::Result
::Item
",
294 { itemnumber => "itemnumber
" },
298 on_delete => "SET NULL
",
299 on_update => "SET NULL
",
307 Related object: L<Koha::Schema::Result::Itemtype>
311 __PACKAGE__->belongs_to(
313 "Koha
::Schema
::Result
::Itemtype
",
314 { itemtype => "itemtype
" },
318 on_delete => "SET NULL
",
319 on_update => "SET NULL
",
324 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-11-06 11:00:40
325 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7weIpuc0RpZ/MxFn94E8dg
327 __PACKAGE__->add_columns(
328 '+item_level_hold' => { is_boolean => 1 },
329 '+lowestPriority' => { is_boolean => 1 },
330 '+suspend' => { is_boolean => 1 },
331 '+non_priority' => { is_boolean => 1 }
334 sub koha_object_class {
337 sub koha_objects_class {