|
Lines 34-39
__PACKAGE__->table("collections_tracking");
Link Here
|
| 34 |
accessor: 'col_id' |
34 |
accessor: 'col_id' |
| 35 |
data_type: 'integer' |
35 |
data_type: 'integer' |
| 36 |
default_value: 0 |
36 |
default_value: 0 |
|
|
37 |
is_foreign_key: 1 |
| 37 |
is_nullable: 0 |
38 |
is_nullable: 0 |
| 38 |
|
39 |
|
| 39 |
collections.colId |
40 |
collections.colId |
|
Lines 42-47
collections.colId
Link Here
|
| 42 |
|
43 |
|
| 43 |
data_type: 'integer' |
44 |
data_type: 'integer' |
| 44 |
default_value: 0 |
45 |
default_value: 0 |
|
|
46 |
is_foreign_key: 1 |
| 45 |
is_nullable: 0 |
47 |
is_nullable: 0 |
| 46 |
|
48 |
|
| 47 |
items.itemnumber |
49 |
items.itemnumber |
|
Lines 53-65
__PACKAGE__->add_columns(
Link Here
|
| 53 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
55 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
| 54 |
"colId", |
56 |
"colId", |
| 55 |
{ |
57 |
{ |
| 56 |
accessor => "col_id", |
58 |
accessor => "col_id", |
| 57 |
data_type => "integer", |
59 |
data_type => "integer", |
| 58 |
default_value => 0, |
60 |
default_value => 0, |
| 59 |
is_nullable => 0, |
61 |
is_foreign_key => 1, |
|
|
62 |
is_nullable => 0, |
| 60 |
}, |
63 |
}, |
| 61 |
"itemnumber", |
64 |
"itemnumber", |
| 62 |
{ data_type => "integer", default_value => 0, is_nullable => 0 }, |
65 |
{ |
|
|
66 |
data_type => "integer", |
| 67 |
default_value => 0, |
| 68 |
is_foreign_key => 1, |
| 69 |
is_nullable => 0, |
| 70 |
}, |
| 63 |
); |
71 |
); |
| 64 |
|
72 |
|
| 65 |
=head1 PRIMARY KEY |
73 |
=head1 PRIMARY KEY |
|
Lines 74-82
__PACKAGE__->add_columns(
Link Here
|
| 74 |
|
82 |
|
| 75 |
__PACKAGE__->set_primary_key("collections_tracking_id"); |
83 |
__PACKAGE__->set_primary_key("collections_tracking_id"); |
| 76 |
|
84 |
|
|
|
85 |
=head1 RELATIONS |
| 86 |
|
| 87 |
=head2 col |
| 88 |
|
| 89 |
Type: belongs_to |
| 90 |
|
| 91 |
Related object: L<Koha::Schema::Result::Collection> |
| 92 |
|
| 93 |
=cut |
| 94 |
|
| 95 |
__PACKAGE__->belongs_to( |
| 96 |
"col", |
| 97 |
"Koha::Schema::Result::Collection", |
| 98 |
{ colId => "colId" }, |
| 99 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
| 100 |
); |
| 101 |
|
| 102 |
=head2 itemnumber |
| 103 |
|
| 104 |
Type: belongs_to |
| 105 |
|
| 106 |
Related object: L<Koha::Schema::Result::Item> |
| 107 |
|
| 108 |
=cut |
| 109 |
|
| 110 |
__PACKAGE__->belongs_to( |
| 111 |
"itemnumber", |
| 112 |
"Koha::Schema::Result::Item", |
| 113 |
{ itemnumber => "itemnumber" }, |
| 114 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
| 115 |
); |
| 116 |
|
| 77 |
|
117 |
|
| 78 |
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-18 13:01:05 |
118 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-05-15 11:37:03 |
| 79 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s8ZFSmMJt313bz3XdlhITQ |
119 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f69L8B7r/Rvyn0AZQbrJcw |
| 80 |
|
120 |
|
| 81 |
|
121 |
|
| 82 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
122 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |