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
65 =head2 notificationdate
68 datetime_undef_if_invalid: 1
74 datetime_undef_if_invalid: 1
77 =head2 cancellationdate
80 datetime_undef_if_invalid: 1
85 data_type: 'mediumtext'
101 data_type: 'timestamp'
102 datetime_undef_if_invalid: 1
103 default_value: current_timestamp
115 datetime_undef_if_invalid: 1
118 =head2 expirationdate
121 datetime_undef_if_invalid: 1
124 =head2 lowestPriority
126 accessor: 'lowest_priority'
138 data_type: 'datetime'
139 datetime_undef_if_invalid: 1
144 __PACKAGE__->add_columns(
146 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
149 data_type => "integer",
155 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
158 data_type => "integer",
164 { data_type => "varchar", is_nullable => 1, size => 1 },
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 => "mediumtext", 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 },
193 { accessor => "lowest_priority", data_type => "tinyint", is_nullable => 0 },
195 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
198 data_type => "datetime",
199 datetime_undef_if_invalid => 1,
208 =item * L</reserve_id>
214 __PACKAGE__->set_primary_key("reserve_id");
222 Related object: L<Koha::Schema::Result::Biblio>
226 __PACKAGE__->belongs_to(
228 "Koha::Schema::Result::Biblio",
229 { biblionumber => "biblionumber" },
230 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
233 =head2 borrowernumber
237 Related object: L<Koha::Schema::Result::Borrower>
241 __PACKAGE__->belongs_to(
243 "Koha::Schema::Result::Borrower",
244 { borrowernumber => "borrowernumber" },
245 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
252 Related object: L<Koha::Schema::Result::Branch>
256 __PACKAGE__->belongs_to(
258 "Koha::Schema::Result::Branch",
259 { branchcode => "branchcode" },
263 on_delete => "CASCADE",
264 on_update => "CASCADE",
272 Related object: L<Koha::Schema::Result::Item>
276 __PACKAGE__->belongs_to(
278 "Koha::Schema::Result::Item",
279 { itemnumber => "itemnumber" },
283 on_delete => "CASCADE",
284 on_update => "CASCADE",
289 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-18 13:01:05
290 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jzng9D1Pns0I2PUF7Wssiw
292 __PACKAGE__->belongs_to(
294 "Koha::Schema::Result::Item",
295 { itemnumber => "itemnumber" },
299 on_delete => "CASCADE",
300 on_update => "CASCADE",
304 __PACKAGE__->belongs_to(
306 "Koha::Schema::Result::Biblio",
307 { biblionumber => "biblionumber" },
311 on_delete => "CASCADE",
312 on_update => "CASCADE",