|
Lines 35-43
course item id
Link Here
|
| 35 |
|
35 |
|
| 36 |
data_type: 'integer' |
36 |
data_type: 'integer' |
| 37 |
is_foreign_key: 1 |
37 |
is_foreign_key: 1 |
| 38 |
is_nullable: 0 |
38 |
is_nullable: 1 |
|
|
39 |
|
| 40 |
=head2 biblionumber |
| 39 |
|
41 |
|
| 40 |
items.itemnumber for the item on reserve |
42 |
data_type: 'integer' |
|
|
43 |
is_foreign_key: 1 |
| 44 |
is_nullable: 0 |
| 41 |
|
45 |
|
| 42 |
=head2 itype |
46 |
=head2 itype |
| 43 |
|
47 |
|
|
Lines 184-189
__PACKAGE__->add_columns(
Link Here
|
| 184 |
"ci_id", |
188 |
"ci_id", |
| 185 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
189 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
| 186 |
"itemnumber", |
190 |
"itemnumber", |
|
|
191 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
| 192 |
"biblionumber", |
| 187 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
193 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 188 |
"itype", |
194 |
"itype", |
| 189 |
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
195 |
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
|
Lines 259-264
__PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]);
Link Here
|
| 259 |
|
265 |
|
| 260 |
=head1 RELATIONS |
266 |
=head1 RELATIONS |
| 261 |
|
267 |
|
|
|
268 |
=head2 biblionumber |
| 269 |
|
| 270 |
Type: belongs_to |
| 271 |
|
| 272 |
Related object: L<Koha::Schema::Result::Biblio> |
| 273 |
|
| 274 |
=cut |
| 275 |
|
| 276 |
__PACKAGE__->belongs_to( |
| 277 |
"biblionumber", |
| 278 |
"Koha::Schema::Result::Biblio", |
| 279 |
{ biblionumber => "biblionumber" }, |
| 280 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
| 281 |
); |
| 282 |
|
| 262 |
=head2 course_reserves |
283 |
=head2 course_reserves |
| 263 |
|
284 |
|
| 264 |
Type: has_many |
285 |
Type: has_many |
|
Lines 346-357
__PACKAGE__->belongs_to(
Link Here
|
| 346 |
"itemnumber", |
367 |
"itemnumber", |
| 347 |
"Koha::Schema::Result::Item", |
368 |
"Koha::Schema::Result::Item", |
| 348 |
{ itemnumber => "itemnumber" }, |
369 |
{ itemnumber => "itemnumber" }, |
| 349 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
370 |
{ |
|
|
371 |
is_deferrable => 1, |
| 372 |
join_type => "LEFT", |
| 373 |
on_delete => "CASCADE", |
| 374 |
on_update => "CASCADE", |
| 375 |
}, |
| 350 |
); |
376 |
); |
| 351 |
|
377 |
|
| 352 |
|
378 |
|
| 353 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 |
379 |
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-02-03 10:03:26 |
| 354 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g97N0MosrfgL6Jg3NVJUFA |
380 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kImBuor/tqSbLlPDt+d2fg |
| 355 |
|
381 |
|
| 356 |
__PACKAGE__->add_columns( |
382 |
__PACKAGE__->add_columns( |
| 357 |
'+itype_enabled' => { is_boolean => 1 }, |
383 |
'+itype_enabled' => { is_boolean => 1 }, |
| 358 |
- |
|
|