|
Lines 98-103
defines if this field displays in checkout screens
Link Here
|
| 98 |
=head2 category_code |
98 |
=head2 category_code |
| 99 |
|
99 |
|
| 100 |
data_type: 'varchar' |
100 |
data_type: 'varchar' |
|
|
101 |
is_foreign_key: 1 |
| 101 |
is_nullable: 1 |
102 |
is_nullable: 1 |
| 102 |
size: 10 |
103 |
size: 10 |
| 103 |
|
104 |
|
|
Lines 150-156
__PACKAGE__->add_columns(
Link Here
|
| 150 |
"display_checkout", |
151 |
"display_checkout", |
| 151 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
152 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
| 152 |
"category_code", |
153 |
"category_code", |
| 153 |
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
154 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
| 154 |
"class", |
155 |
"class", |
| 155 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, |
156 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, |
| 156 |
"keep_for_pseudonymization", |
157 |
"keep_for_pseudonymization", |
|
Lines 203-208
__PACKAGE__->has_many(
Link Here
|
| 203 |
{ cascade_copy => 0, cascade_delete => 0 }, |
204 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 204 |
); |
205 |
); |
| 205 |
|
206 |
|
|
|
207 |
=head2 category_code |
| 208 |
|
| 209 |
Type: belongs_to |
| 210 |
|
| 211 |
Related object: L<Koha::Schema::Result::Category> |
| 212 |
|
| 213 |
=cut |
| 214 |
|
| 215 |
__PACKAGE__->belongs_to( |
| 216 |
"category_code", |
| 217 |
"Koha::Schema::Result::Category", |
| 218 |
{ categorycode => "category_code" }, |
| 219 |
{ |
| 220 |
is_deferrable => 1, |
| 221 |
join_type => "LEFT", |
| 222 |
on_delete => "RESTRICT", |
| 223 |
on_update => "RESTRICT", |
| 224 |
}, |
| 225 |
); |
| 226 |
|
| 206 |
=head2 pseudonymized_borrower_attributes |
227 |
=head2 pseudonymized_borrower_attributes |
| 207 |
|
228 |
|
| 208 |
Type: has_many |
229 |
Type: has_many |
|
Lines 219-226
__PACKAGE__->has_many(
Link Here
|
| 219 |
); |
240 |
); |
| 220 |
|
241 |
|
| 221 |
|
242 |
|
| 222 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 |
243 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-04-25 12:50:55 |
| 223 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a/IA2iqSJqg3oOS+o1nXFg |
244 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VgJP4Ugfz0sN3YoJk/tshA |
| 224 |
|
245 |
|
| 225 |
__PACKAGE__->add_columns( |
246 |
__PACKAGE__->add_columns( |
| 226 |
'+keep_for_pseudonymization' => { is_boolean => 1 }, |
247 |
'+keep_for_pseudonymization' => { is_boolean => 1 }, |