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
134 __PACKAGE__->add_columns(
136 { data_type => "integer", is_nullable => 0 },
138 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
140 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
142 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
144 { data_type => "varchar", is_nullable => 1, size => 10 },
146 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
148 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
150 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
152 { data_type => "mediumtext", is_nullable => 1 },
154 { data_type => "smallint", is_nullable => 1 },
156 { data_type => "varchar", is_nullable => 1, size => 1 },
159 data_type => "timestamp",
160 datetime_undef_if_invalid => 1,
161 default_value => \"current_timestamp",
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 => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
171 { accessor => "lowest_priority", data_type => "tinyint", is_nullable => 0 },
173 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
176 data_type => "datetime",
177 datetime_undef_if_invalid => 1,
186 =item * L</reserve_id>
192 __PACKAGE__->set_primary_key("reserve_id");
200 Related object: L<Koha::Schema::Result::Biblio>
204 __PACKAGE__->belongs_to(
206 "Koha::Schema::Result::Biblio",
207 { biblionumber => "biblionumber" },
211 on_delete => "SET NULL",
212 on_update => "SET NULL",
216 =head2 borrowernumber
220 Related object: L<Koha::Schema::Result::Borrower>
224 __PACKAGE__->belongs_to(
226 "Koha::Schema::Result::Borrower",
227 { borrowernumber => "borrowernumber" },
231 on_delete => "SET NULL",
232 on_update => "SET NULL",
240 Related object: L<Koha::Schema::Result::Item>
244 __PACKAGE__->belongs_to(
246 "Koha::Schema::Result::Item",
247 { itemnumber => "itemnumber" },
251 on_delete => "SET NULL",
252 on_update => "SET NULL",
257 # Created by DBIx::Class::Schema::Loader v0.07040 @ 2015-06-30 08:51:40
258 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wGi7SO5Sz+IwuvqaAyQDbg
261 # You can replace this text with custom content, and it will be preserved on regeneration