2 package Koha::Schema::Result::BorrowerAttributeType;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::BorrowerAttributeType
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<borrower_attribute_types>
22 __PACKAGE__->table("borrower_attribute_types");
62 =head2 staff_searchable
68 =head2 authorised_value_category
74 =head2 display_checkout
89 default_value: (empty string)
93 =head2 keep_for_pseudonymization
107 __PACKAGE__->add_columns(
109 { data_type => "varchar", is_nullable => 0, size => 10 },
111 { data_type => "varchar", is_nullable => 0, size => 255 },
113 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
115 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
117 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
119 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
121 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
122 "authorised_value_category",
123 { data_type => "varchar", is_nullable => 1, size => 32 },
125 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
127 { data_type => "varchar", is_nullable => 1, size => 10 },
129 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
130 "keep_for_pseudonymization",
131 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
133 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
146 __PACKAGE__->set_primary_key("code");
150 =head2 borrower_attribute_types_branches
154 Related object: L<Koha::Schema::Result::BorrowerAttributeTypesBranch>
158 __PACKAGE__->has_many(
159 "borrower_attribute_types_branches",
160 "Koha::Schema::Result::BorrowerAttributeTypesBranch",
161 { "foreign.bat_code" => "self.code" },
162 { cascade_copy => 0, cascade_delete => 0 },
165 =head2 borrower_attributes
169 Related object: L<Koha::Schema::Result::BorrowerAttribute>
173 __PACKAGE__->has_many(
174 "borrower_attributes",
175 "Koha::Schema::Result::BorrowerAttribute",
176 { "foreign.code" => "self.code" },
177 { cascade_copy => 0, cascade_delete => 0 },
180 =head2 pseudonymized_borrower_attributes
184 Related object: L<Koha::Schema::Result::PseudonymizedBorrowerAttribute>
188 __PACKAGE__->has_many(
189 "pseudonymized_borrower_attributes",
190 "Koha::Schema::Result::PseudonymizedBorrowerAttribute",
191 { "foreign.code" => "self.code" },
192 { cascade_copy => 0, cascade_delete => 0 },
196 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-07-20 12:40:43
197 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+5TTNyiyjJkADhbkSLvGLw
199 __PACKAGE__->add_columns(
200 '+keep_for_pseudonymization' => { is_boolean => 1 },
203 __PACKAGE__->add_columns(
204 '+mandatory' => { is_boolean => 1 },
207 sub koha_object_class {
208 'Koha::Patron::Attribute::Type';
210 sub koha_objects_class {
211 'Koha::Patron::Attribute::Types';