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
91 data_type: 'timestamp'
92 datetime_undef_if_invalid: 1
93 default_value: current_timestamp
105 datetime_undef_if_invalid: 1
108 =head2 expirationdate
111 datetime_undef_if_invalid: 1
114 =head2 lowestPriority
116 accessor: 'lowest_priority'
129 data_type: 'datetime'
130 datetime_undef_if_invalid: 1
142 __PACKAGE__
->add_columns(
144 { data_type
=> "integer", is_nullable
=> 0 },
146 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
148 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
150 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
152 { data_type
=> "varchar", is_nullable
=> 1, size
=> 10 },
154 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
156 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
158 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
160 { data_type
=> "longtext", is_nullable
=> 1 },
162 { data_type
=> "smallint", is_nullable
=> 1 },
164 { data_type
=> "varchar", is_nullable
=> 1, size
=> 1 },
167 data_type
=> "timestamp",
168 datetime_undef_if_invalid
=> 1,
169 default_value
=> \"current_timestamp
",
173 { data_type => "integer
", is_foreign_key => 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 },
180 accessor => "lowest_priority
",
181 data_type => "tinyint
",
186 { data_type => "tinyint
", default_value => 0, is_nullable => 0 },
189 data_type => "datetime
",
190 datetime_undef_if_invalid => 1,
194 { data_type => "varchar
", is_foreign_key => 1, is_nullable => 1, size => 10 },
201 =item * L</reserve_id>
207 __PACKAGE__->set_primary_key("reserve_id
");
215 Related object: L<Koha::Schema::Result::Biblio>
219 __PACKAGE__->belongs_to(
221 "Koha
::Schema
::Result
::Biblio
",
222 { biblionumber => "biblionumber
" },
226 on_delete => "SET NULL
",
227 on_update => "SET NULL
",
231 =head2 borrowernumber
235 Related object: L<Koha::Schema::Result::Borrower>
239 __PACKAGE__->belongs_to(
241 "Koha
::Schema
::Result
::Borrower
",
242 { borrowernumber => "borrowernumber
" },
246 on_delete => "SET NULL
",
247 on_update => "SET NULL
",
255 Related object: L<Koha::Schema::Result::Item>
259 __PACKAGE__->belongs_to(
261 "Koha
::Schema
::Result
::Item
",
262 { itemnumber => "itemnumber
" },
266 on_delete => "SET NULL
",
267 on_update => "SET NULL
",
275 Related object: L<Koha::Schema::Result::Itemtype>
279 __PACKAGE__->belongs_to(
281 "Koha
::Schema
::Result
::Itemtype
",
282 { itemtype => "itemtype
" },
286 on_delete => "SET NULL
",
287 on_update => "SET NULL
",
292 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
293 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ynb6NtiTN8ZZur2YCvxlNg
296 # You can replace this text with custom content, and it will be preserved on regeneration