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'
131 __PACKAGE__->add_columns(
133 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
136 data_type => "integer",
142 { data_type => "date", is_nullable => 1 },
145 data_type => "integer",
151 { data_type => "varchar", is_nullable => 1, size => 1 },
153 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
155 { data_type => "date", is_nullable => 1 },
157 { data_type => "date", is_nullable => 1 },
159 { data_type => "date", is_nullable => 1 },
161 { data_type => "mediumtext", is_nullable => 1 },
163 { data_type => "smallint", is_nullable => 1 },
165 { data_type => "varchar", is_nullable => 1, size => 1 },
168 data_type => "timestamp",
169 default_value => \"current_timestamp",
173 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
175 { data_type => "date", is_nullable => 1 },
177 { data_type => "date", is_nullable => 1 },
179 { data_type => "tinyint", is_nullable => 0 },
181 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
183 { data_type => "datetime", is_nullable => 1 },
185 __PACKAGE__->set_primary_key("reserve_id");
189 =head2 borrowernumber
193 Related object: L<Koha::Schema::Result::Borrower>
197 __PACKAGE__->belongs_to(
199 "Koha::Schema::Result::Borrower",
200 { borrowernumber => "borrowernumber" },
201 { on_delete => "CASCADE", on_update => "CASCADE" },
208 Related object: L<Koha::Schema::Result::Biblio>
212 __PACKAGE__->belongs_to(
214 "Koha::Schema::Result::Biblio",
215 { biblionumber => "biblionumber" },
216 { on_delete => "CASCADE", on_update => "CASCADE" },
223 Related object: L<Koha::Schema::Result::Item>
227 __PACKAGE__->belongs_to(
229 "Koha::Schema::Result::Item",
230 { itemnumber => "itemnumber" },
231 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
238 Related object: L<Koha::Schema::Result::Branch>
242 __PACKAGE__->belongs_to(
244 "Koha::Schema::Result::Branch",
245 { branchcode => "branchcode" },
246 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
250 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
251 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+8kr13IjL7oHVHRXQzTReA
254 # You can replace this text with custom content, and it will be preserved on regeneration