Lines 95-109
foreign key from authorised_values that links this custom field to an authorized
Link Here
|
95 |
|
95 |
|
96 |
defines if this field displays in checkout screens |
96 |
defines if this field displays in checkout screens |
97 |
|
97 |
|
98 |
=head2 category_code |
|
|
99 |
|
100 |
data_type: 'varchar' |
101 |
is_foreign_key: 1 |
102 |
is_nullable: 1 |
103 |
size: 10 |
104 |
|
105 |
defines a category for an attribute_type |
106 |
|
107 |
=head2 class |
98 |
=head2 class |
108 |
|
99 |
|
109 |
data_type: 'varchar' |
100 |
data_type: 'varchar' |
Lines 150-157
__PACKAGE__->add_columns(
Link Here
|
150 |
{ data_type => "varchar", is_nullable => 1, size => 32 }, |
141 |
{ data_type => "varchar", is_nullable => 1, size => 32 }, |
151 |
"display_checkout", |
142 |
"display_checkout", |
152 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
143 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
153 |
"category_code", |
|
|
154 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
155 |
"class", |
144 |
"class", |
156 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, |
145 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, |
157 |
"keep_for_pseudonymization", |
146 |
"keep_for_pseudonymization", |
Lines 189-227
__PACKAGE__->has_many(
Link Here
|
189 |
{ cascade_copy => 0, cascade_delete => 0 }, |
178 |
{ cascade_copy => 0, cascade_delete => 0 }, |
190 |
); |
179 |
); |
191 |
|
180 |
|
192 |
=head2 borrower_attributes |
181 |
=head2 borrower_attribute_types_categories |
193 |
|
182 |
|
194 |
Type: has_many |
183 |
Type: has_many |
195 |
|
184 |
|
196 |
Related object: L<Koha::Schema::Result::BorrowerAttribute> |
185 |
Related object: L<Koha::Schema::Result::BorrowerAttributeTypesCategory> |
197 |
|
186 |
|
198 |
=cut |
187 |
=cut |
199 |
|
188 |
|
200 |
__PACKAGE__->has_many( |
189 |
__PACKAGE__->has_many( |
201 |
"borrower_attributes", |
190 |
"borrower_attribute_types_categories", |
202 |
"Koha::Schema::Result::BorrowerAttribute", |
191 |
"Koha::Schema::Result::BorrowerAttributeTypesCategory", |
203 |
{ "foreign.code" => "self.code" }, |
192 |
{ "foreign.borrower_attribute_type_code" => "self.code" }, |
204 |
{ cascade_copy => 0, cascade_delete => 0 }, |
193 |
{ cascade_copy => 0, cascade_delete => 0 }, |
205 |
); |
194 |
); |
206 |
|
195 |
|
207 |
=head2 category_code |
196 |
=head2 borrower_attributes |
208 |
|
197 |
|
209 |
Type: belongs_to |
198 |
Type: has_many |
210 |
|
199 |
|
211 |
Related object: L<Koha::Schema::Result::Category> |
200 |
Related object: L<Koha::Schema::Result::BorrowerAttribute> |
212 |
|
201 |
|
213 |
=cut |
202 |
=cut |
214 |
|
203 |
|
215 |
__PACKAGE__->belongs_to( |
204 |
__PACKAGE__->has_many( |
216 |
"category_code", |
205 |
"borrower_attributes", |
217 |
"Koha::Schema::Result::Category", |
206 |
"Koha::Schema::Result::BorrowerAttribute", |
218 |
{ categorycode => "category_code" }, |
207 |
{ "foreign.code" => "self.code" }, |
219 |
{ |
208 |
{ cascade_copy => 0, cascade_delete => 0 }, |
220 |
is_deferrable => 1, |
|
|
221 |
join_type => "LEFT", |
222 |
on_delete => "RESTRICT", |
223 |
on_update => "RESTRICT", |
224 |
}, |
225 |
); |
209 |
); |
226 |
|
210 |
|
227 |
=head2 pseudonymized_borrower_attributes |
211 |
=head2 pseudonymized_borrower_attributes |
Lines 239-247
__PACKAGE__->has_many(
Link Here
|
239 |
{ cascade_copy => 0, cascade_delete => 0 }, |
223 |
{ cascade_copy => 0, cascade_delete => 0 }, |
240 |
); |
224 |
); |
241 |
|
225 |
|
|
|
226 |
=head2 categorycodes |
227 |
|
228 |
Type: many_to_many |
229 |
|
230 |
Composing rels: L</borrower_attribute_types_categories> -> categorycode |
231 |
|
232 |
=cut |
233 |
|
234 |
__PACKAGE__->many_to_many( |
235 |
"categorycodes", |
236 |
"borrower_attribute_types_categories", |
237 |
"categorycode", |
238 |
); |
239 |
|
242 |
|
240 |
|
243 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-04-25 12:50:55 |
241 |
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2022-11-03 13:31:18 |
244 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VgJP4Ugfz0sN3YoJk/tshA |
242 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Y08Zohgrnb412pc62ncRfg |
245 |
|
243 |
|
246 |
__PACKAGE__->add_columns( |
244 |
__PACKAGE__->add_columns( |
247 |
'+keep_for_pseudonymization' => { is_boolean => 1 }, |
245 |
'+keep_for_pseudonymization' => { is_boolean => 1 }, |