2 package Koha
::Schema
::Result
::OldReserve
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::OldReserve
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<old_reserves>
22 __PACKAGE__
->table("old_reserves");
40 datetime_undef_if_invalid: 1
61 =head2 notificationdate
64 datetime_undef_if_invalid: 1
70 datetime_undef_if_invalid: 1
73 =head2 cancellationdate
76 datetime_undef_if_invalid: 1
81 data_type: 'mediumtext'
97 data_type: 'timestamp'
98 datetime_undef_if_invalid: 1
99 default_value: current_timestamp
111 datetime_undef_if_invalid: 1
114 =head2 expirationdate
117 datetime_undef_if_invalid: 1
120 =head2 lowestpriority
133 data_type: 'datetime'
134 datetime_undef_if_invalid: 1
139 __PACKAGE__
->add_columns(
141 { data_type
=> "integer", is_nullable
=> 0 },
143 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
145 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
147 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
149 { data_type
=> "varchar", is_nullable
=> 1, size
=> 1 },
151 { data_type
=> "varchar", is_nullable
=> 1, size
=> 10 },
153 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
155 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
157 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
159 { data_type
=> "mediumtext", is_nullable
=> 1 },
161 { data_type
=> "smallint", is_nullable
=> 1 },
163 { data_type
=> "varchar", is_nullable
=> 1, size
=> 1 },
166 data_type
=> "timestamp",
167 datetime_undef_if_invalid
=> 1,
168 default_value
=> \"current_timestamp
",
172 { data_type => "integer
", is_foreign_key => 1, is_nullable => 1 },
174 { data_type => "date
", datetime_undef_if_invalid => 1, is_nullable => 1 },
176 { data_type => "date
", datetime_undef_if_invalid => 1, is_nullable => 1 },
178 { data_type => "tinyint
", is_nullable => 0 },
180 { data_type => "tinyint
", default_value => 0, is_nullable => 0 },
183 data_type => "datetime
",
184 datetime_undef_if_invalid => 1,
193 =item * L</reserve_id>
199 __PACKAGE__->set_primary_key("reserve_id
");
207 Related object: L<Koha::Schema::Result::Biblio>
211 __PACKAGE__->belongs_to(
213 "Koha
::Schema
::Result
::Biblio
",
214 { biblionumber => "biblionumber
" },
218 on_delete => "CASCADE
",
219 on_update => "CASCADE
",
223 =head2 borrowernumber
227 Related object: L<Koha::Schema::Result::Borrower>
231 __PACKAGE__->belongs_to(
233 "Koha
::Schema
::Result
::Borrower
",
234 { borrowernumber => "borrowernumber
" },
238 on_delete => "CASCADE
",
239 on_update => "CASCADE
",
247 Related object: L<Koha::Schema::Result::Item>
251 __PACKAGE__->belongs_to(
253 "Koha
::Schema
::Result
::Item
",
254 { itemnumber => "itemnumber
" },
258 on_delete => "CASCADE
",
259 on_update => "CASCADE
",
264 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
265 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g/WiYGPOyzJGtMWiAHvIxA
268 # You can replace this text with custom content, and it will be preserved on regeneration