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
75 data_type: 'mediumtext'
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'
128 data_type: 'datetime'
129 datetime_undef_if_invalid: 1
141 __PACKAGE__->add_columns(
143 { data_type => "integer", is_nullable => 0 },
145 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
147 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
149 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
151 { data_type => "varchar", is_nullable => 1, size => 10 },
153 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
155 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
157 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
159 { data_type => "mediumtext", is_nullable => 1 },
161 { data_type => "smallint", is_nullable => 1 },
163 { data_type => "varchar", is_nullable => 1, size => 1 },
166 data_type => "timestamp",
167 datetime_undef_if_invalid => 1,
168 default_value => \"current_timestamp",
172 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
174 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
176 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
178 { accessor => "lowest_priority", data_type => "tinyint", is_nullable => 0 },
180 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
183 data_type => "datetime",
184 datetime_undef_if_invalid => 1,
188 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
195 =item * L</reserve_id>
201 __PACKAGE__->set_primary_key("reserve_id");
209 Related object: L<Koha::Schema::Result::Biblio>
213 __PACKAGE__->belongs_to(
215 "Koha::Schema::Result::Biblio",
216 { biblionumber => "biblionumber" },
220 on_delete => "SET NULL",
221 on_update => "SET NULL",
225 =head2 borrowernumber
229 Related object: L<Koha::Schema::Result::Borrower>
233 __PACKAGE__->belongs_to(
235 "Koha::Schema::Result::Borrower",
236 { borrowernumber => "borrowernumber" },
240 on_delete => "SET NULL",
241 on_update => "SET NULL",
249 Related object: L<Koha::Schema::Result::Item>
253 __PACKAGE__->belongs_to(
255 "Koha::Schema::Result::Item",
256 { itemnumber => "itemnumber" },
260 on_delete => "SET NULL",
261 on_update => "SET NULL",
269 Related object: L<Koha::Schema::Result::Itemtype>
273 __PACKAGE__->belongs_to(
275 "Koha::Schema::Result::Itemtype",
276 { itemtype => "itemtype" },
280 on_delete => "SET NULL",
281 on_update => "SET NULL",
286 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-05-02 15:00:01
287 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cKmTD43jb4WnCrw57+ixrw
290 # You can replace this text with custom content, and it will be preserved on regeneration