|
Lines 34-39
primary key identifier
Link Here
|
| 34 |
=head2 biblionumber |
34 |
=head2 biblionumber |
| 35 |
|
35 |
|
| 36 |
data_type: 'integer' |
36 |
data_type: 'integer' |
|
|
37 |
is_foreign_key: 1 |
| 37 |
is_nullable: 1 |
38 |
is_nullable: 1 |
| 38 |
|
39 |
|
| 39 |
biblionumber of the record the link is from |
40 |
biblionumber of the record the link is from |
|
Lines 41-46
biblionumber of the record the link is from
Link Here
|
| 41 |
=head2 itemnumber |
42 |
=head2 itemnumber |
| 42 |
|
43 |
|
| 43 |
data_type: 'integer' |
44 |
data_type: 'integer' |
|
|
45 |
is_foreign_key: 1 |
| 44 |
is_nullable: 1 |
46 |
is_nullable: 1 |
| 45 |
|
47 |
|
| 46 |
itemnumber if applicable that the link was from |
48 |
itemnumber if applicable that the link was from |
|
Lines 48-53
itemnumber if applicable that the link was from
Link Here
|
| 48 |
=head2 borrowernumber |
50 |
=head2 borrowernumber |
| 49 |
|
51 |
|
| 50 |
data_type: 'integer' |
52 |
data_type: 'integer' |
|
|
53 |
is_foreign_key: 1 |
| 51 |
is_nullable: 1 |
54 |
is_nullable: 1 |
| 52 |
|
55 |
|
| 53 |
borrowernumber who clicked the link |
56 |
borrowernumber who clicked the link |
|
Lines 73-83
__PACKAGE__->add_columns(
Link Here
|
| 73 |
"id", |
76 |
"id", |
| 74 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
77 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
| 75 |
"biblionumber", |
78 |
"biblionumber", |
| 76 |
{ data_type => "integer", is_nullable => 1 }, |
79 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
| 77 |
"itemnumber", |
80 |
"itemnumber", |
| 78 |
{ data_type => "integer", is_nullable => 1 }, |
81 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
| 79 |
"borrowernumber", |
82 |
"borrowernumber", |
| 80 |
{ data_type => "integer", is_nullable => 1 }, |
83 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
| 81 |
"url", |
84 |
"url", |
| 82 |
{ data_type => "mediumtext", is_nullable => 1 }, |
85 |
{ data_type => "mediumtext", is_nullable => 1 }, |
| 83 |
"timeclicked", |
86 |
"timeclicked", |
|
Lines 100-108
__PACKAGE__->add_columns(
Link Here
|
| 100 |
|
103 |
|
| 101 |
__PACKAGE__->set_primary_key("id"); |
104 |
__PACKAGE__->set_primary_key("id"); |
| 102 |
|
105 |
|
|
|
106 |
=head1 RELATIONS |
| 103 |
|
107 |
|
| 104 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 |
108 |
=head2 biblionumber |
| 105 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dNzvrDz4qAO/rvZaYUEjAg |
109 |
|
|
|
110 |
Type: belongs_to |
| 111 |
|
| 112 |
Related object: L<Koha::Schema::Result::Biblio> |
| 113 |
|
| 114 |
=cut |
| 115 |
|
| 116 |
__PACKAGE__->belongs_to( |
| 117 |
"biblionumber", |
| 118 |
"Koha::Schema::Result::Biblio", |
| 119 |
{ biblionumber => "biblionumber" }, |
| 120 |
{ |
| 121 |
is_deferrable => 1, |
| 122 |
join_type => "LEFT", |
| 123 |
on_delete => "SET NULL", |
| 124 |
on_update => "SET NULL", |
| 125 |
}, |
| 126 |
); |
| 127 |
|
| 128 |
=head2 borrowernumber |
| 129 |
|
| 130 |
Type: belongs_to |
| 131 |
|
| 132 |
Related object: L<Koha::Schema::Result::Borrower> |
| 133 |
|
| 134 |
=cut |
| 135 |
|
| 136 |
__PACKAGE__->belongs_to( |
| 137 |
"borrowernumber", |
| 138 |
"Koha::Schema::Result::Borrower", |
| 139 |
{ borrowernumber => "borrowernumber" }, |
| 140 |
{ |
| 141 |
is_deferrable => 1, |
| 142 |
join_type => "LEFT", |
| 143 |
on_delete => "SET NULL", |
| 144 |
on_update => "SET NULL", |
| 145 |
}, |
| 146 |
); |
| 147 |
|
| 148 |
=head2 itemnumber |
| 149 |
|
| 150 |
Type: belongs_to |
| 151 |
|
| 152 |
Related object: L<Koha::Schema::Result::Item> |
| 153 |
|
| 154 |
=cut |
| 155 |
|
| 156 |
__PACKAGE__->belongs_to( |
| 157 |
"itemnumber", |
| 158 |
"Koha::Schema::Result::Item", |
| 159 |
{ itemnumber => "itemnumber" }, |
| 160 |
{ |
| 161 |
is_deferrable => 1, |
| 162 |
join_type => "LEFT", |
| 163 |
on_delete => "SET NULL", |
| 164 |
on_update => "SET NULL", |
| 165 |
}, |
| 166 |
); |
| 167 |
|
| 168 |
|
| 169 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-07-22 09:54:44 |
| 170 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/OpO+hgnOTsMMXApkRsT4A |
| 106 |
|
171 |
|
| 107 |
|
172 |
|
| 108 |
# You can replace this text with custom content, and it will be preserved on regeneration |
173 |
# You can replace this text with custom content, and it will be preserved on regeneration |
| 109 |
- |
|
|