1 package Koha::Schema::Result::Reserve;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::Reserve
18 __PACKAGE__->table("reserves");
60 =head2 notificationdate
70 =head2 cancellationdate
77 data_type: 'mediumtext'
93 data_type: 'timestamp'
94 default_value: current_timestamp
108 =head2 expirationdate
113 =head2 lowestpriority
126 data_type: 'datetime'
136 __PACKAGE__->add_columns(
138 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
141 data_type => "integer",
147 { data_type => "date", is_nullable => 1 },
150 data_type => "integer",
156 { data_type => "varchar", is_nullable => 1, size => 1 },
158 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
160 { data_type => "date", is_nullable => 1 },
162 { data_type => "date", is_nullable => 1 },
164 { data_type => "date", 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 default_value => \"current_timestamp",
178 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
180 { data_type => "date", is_nullable => 1 },
182 { data_type => "date", is_nullable => 1 },
184 { data_type => "tinyint", is_nullable => 0 },
186 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
188 { data_type => "datetime", is_nullable => 1 },
190 { data_type => "date", is_nullable => 1 },
192 __PACKAGE__->set_primary_key("reserve_id");
196 =head2 borrowernumber
200 Related object: L<Koha::Schema::Result::Borrower>
204 __PACKAGE__->belongs_to(
206 "Koha::Schema::Result::Borrower",
207 { borrowernumber => "borrowernumber" },
208 { on_delete => "CASCADE", on_update => "CASCADE" },
215 Related object: L<Koha::Schema::Result::Biblio>
219 __PACKAGE__->belongs_to(
221 "Koha::Schema::Result::Biblio",
222 { biblionumber => "biblionumber" },
223 { on_delete => "CASCADE", on_update => "CASCADE" },
230 Related object: L<Koha::Schema::Result::Item>
234 __PACKAGE__->belongs_to(
236 "Koha::Schema::Result::Item",
237 { itemnumber => "itemnumber" },
238 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
245 Related object: L<Koha::Schema::Result::Branch>
249 __PACKAGE__->belongs_to(
251 "Koha::Schema::Result::Branch",
252 { branchcode => "branchcode" },
253 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
257 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
258 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RqJFYCoDl4dMH1cwZilLKA
261 # You can replace this text with custom content, and it will be preserved on regeneration