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
137 data_type: 'datetime'
138 datetime_undef_if_invalid: 1
143 __PACKAGE__->add_columns(
145 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
148 data_type => "integer",
154 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
157 data_type => "integer",
163 { data_type => "varchar", is_nullable => 1, size => 1 },
165 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
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 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
173 { data_type => "mediumtext", is_nullable => 1 },
175 { data_type => "smallint", is_nullable => 1 },
177 { data_type => "varchar", is_nullable => 1, size => 1 },
180 data_type => "timestamp",
181 datetime_undef_if_invalid => 1,
182 default_value => \"current_timestamp",
186 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
188 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
190 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
192 { data_type => "tinyint", is_nullable => 0 },
194 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
197 data_type => "datetime",
198 datetime_undef_if_invalid => 1,
207 =item * L</reserve_id>
213 __PACKAGE__->set_primary_key("reserve_id");
221 Related object: L<Koha::Schema::Result::Biblio>
225 __PACKAGE__->belongs_to(
227 "Koha::Schema::Result::Biblio",
228 { biblionumber => "biblionumber" },
229 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
232 =head2 borrowernumber
236 Related object: L<Koha::Schema::Result::Borrower>
240 __PACKAGE__->belongs_to(
242 "Koha::Schema::Result::Borrower",
243 { borrowernumber => "borrowernumber" },
244 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
251 Related object: L<Koha::Schema::Result::Branch>
255 __PACKAGE__->belongs_to(
257 "Koha::Schema::Result::Branch",
258 { branchcode => "branchcode" },
262 on_delete => "CASCADE",
263 on_update => "CASCADE",
271 Related object: L<Koha::Schema::Result::Item>
275 __PACKAGE__->belongs_to(
277 "Koha::Schema::Result::Item",
278 { itemnumber => "itemnumber" },
282 on_delete => "CASCADE",
283 on_update => "CASCADE",
288 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
289 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ig/fobzvZf1OgAHZFtkyyQ
292 # You can replace this text with custom content, and it will be preserved on regeneration