2 package Koha
::Schema
::Result
::Reserve
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Reserve
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<reserves>
22 __PACKAGE__
->table("reserves");
42 datetime_undef_if_invalid: 1
59 =head2 notificationdate
62 datetime_undef_if_invalid: 1
68 datetime_undef_if_invalid: 1
71 =head2 cancellationdate
74 datetime_undef_if_invalid: 1
95 data_type: 'timestamp'
96 datetime_undef_if_invalid: 1
97 default_value: current_timestamp
109 datetime_undef_if_invalid: 1
112 =head2 expirationdate
115 datetime_undef_if_invalid: 1
118 =head2 lowestPriority
120 accessor: 'lowest_priority'
133 data_type: 'datetime'
134 datetime_undef_if_invalid: 1
146 __PACKAGE__
->add_columns(
148 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
151 data_type
=> "integer",
157 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
160 data_type
=> "integer",
166 { data_type
=> "varchar", is_foreign_key
=> 1, is_nullable
=> 1, size
=> 10 },
168 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
170 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
172 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
174 { data_type
=> "longtext", is_nullable
=> 1 },
176 { data_type
=> "smallint", is_nullable
=> 1 },
178 { data_type
=> "varchar", is_nullable
=> 1, size
=> 1 },
181 data_type
=> "timestamp",
182 datetime_undef_if_invalid
=> 1,
183 default_value
=> \"current_timestamp
",
187 { data_type => "integer
", is_foreign_key => 1, is_nullable => 1 },
189 { data_type => "date
", datetime_undef_if_invalid => 1, is_nullable => 1 },
191 { data_type => "date
", datetime_undef_if_invalid => 1, is_nullable => 1 },
194 accessor => "lowest_priority
",
195 data_type => "tinyint
",
200 { data_type => "tinyint
", default_value => 0, is_nullable => 0 },
203 data_type => "datetime
",
204 datetime_undef_if_invalid => 1,
208 { data_type => "varchar
", is_foreign_key => 1, is_nullable => 1, size => 10 },
215 =item * L</reserve_id>
221 __PACKAGE__->set_primary_key("reserve_id
");
229 Related object: L<Koha::Schema::Result::Biblio>
233 __PACKAGE__->belongs_to(
235 "Koha
::Schema
::Result
::Biblio
",
236 { biblionumber => "biblionumber
" },
237 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
240 =head2 borrowernumber
244 Related object: L<Koha::Schema::Result::Borrower>
248 __PACKAGE__->belongs_to(
250 "Koha
::Schema
::Result
::Borrower
",
251 { borrowernumber => "borrowernumber
" },
252 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
259 Related object: L<Koha::Schema::Result::Branch>
263 __PACKAGE__->belongs_to(
265 "Koha
::Schema
::Result
::Branch
",
266 { branchcode => "branchcode
" },
270 on_delete => "CASCADE
",
271 on_update => "CASCADE
",
279 Related object: L<Koha::Schema::Result::Item>
283 __PACKAGE__->belongs_to(
285 "Koha
::Schema
::Result
::Item
",
286 { itemnumber => "itemnumber
" },
290 on_delete => "CASCADE
",
291 on_update => "CASCADE
",
299 Related object: L<Koha::Schema::Result::Itemtype>
303 __PACKAGE__->belongs_to(
305 "Koha
::Schema
::Result
::Itemtype
",
306 { itemtype => "itemtype
" },
310 on_delete => "CASCADE
",
311 on_update => "CASCADE
",
316 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
317 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2GCET9quFpUvzuN7MUWZNw
319 __PACKAGE__->belongs_to(
321 "Koha
::Schema
::Result
::Item
",
322 { itemnumber => "itemnumber
" },
326 on_delete => "CASCADE
",
327 on_update => "CASCADE
",
331 __PACKAGE__->belongs_to(
333 "Koha
::Schema
::Result
::Biblio
",
334 { biblionumber => "biblionumber
" },
338 on_delete => "CASCADE
",
339 on_update => "CASCADE
",
343 __PACKAGE__->add_columns(
344 '+lowestPriority' => { is_boolean => 1 },
345 '+suspend' => { is_boolean => 1 }