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
79 data_type: 'mediumtext'
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'
132 data_type: 'datetime'
133 datetime_undef_if_invalid: 1
138 __PACKAGE__->add_columns(
140 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
143 data_type => "integer",
149 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
152 data_type => "integer",
158 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
160 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
162 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
164 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
166 { data_type => "mediumtext", is_nullable => 1 },
168 { data_type => "smallint", is_nullable => 1 },
170 { data_type => "varchar", is_nullable => 1, size => 1 },
173 data_type => "timestamp",
174 datetime_undef_if_invalid => 1,
175 default_value => \"current_timestamp",
179 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
181 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
183 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
185 { accessor => "lowest_priority", data_type => "tinyint", is_nullable => 0 },
187 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
190 data_type => "datetime",
191 datetime_undef_if_invalid => 1,
200 =item * L</reserve_id>
206 __PACKAGE__->set_primary_key("reserve_id");
214 Related object: L<Koha::Schema::Result::Biblio>
218 __PACKAGE__->belongs_to(
220 "Koha::Schema::Result::Biblio",
221 { biblionumber => "biblionumber" },
222 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
225 =head2 borrowernumber
229 Related object: L<Koha::Schema::Result::Borrower>
233 __PACKAGE__->belongs_to(
235 "Koha::Schema::Result::Borrower",
236 { borrowernumber => "borrowernumber" },
237 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
244 Related object: L<Koha::Schema::Result::Branch>
248 __PACKAGE__->belongs_to(
250 "Koha::Schema::Result::Branch",
251 { branchcode => "branchcode" },
255 on_delete => "CASCADE",
256 on_update => "CASCADE",
264 Related object: L<Koha::Schema::Result::Item>
268 __PACKAGE__->belongs_to(
270 "Koha::Schema::Result::Item",
271 { itemnumber => "itemnumber" },
275 on_delete => "CASCADE",
276 on_update => "CASCADE",
281 # Created by DBIx::Class::Schema::Loader v0.07040 @ 2015-06-30 08:51:40
282 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uHHqseJ56g3nDyKnNncyUA
284 __PACKAGE__->belongs_to(
286 "Koha::Schema::Result::Item",
287 { itemnumber => "itemnumber" },
291 on_delete => "CASCADE",
292 on_update => "CASCADE",
296 __PACKAGE__->belongs_to(
298 "Koha::Schema::Result::Biblio",
299 { biblionumber => "biblionumber" },
303 on_delete => "CASCADE",
304 on_update => "CASCADE",