Bug 20434: Update UNIMARC framework - auth (SAUTTIT)
[koha.git] / Koha / Schema / Result / BorrowerAttributeType.pm
blob46a86f07bcadc91f986d734690482c443c340985
1 use utf8;
2 package Koha::Schema::Result::BorrowerAttributeType;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::BorrowerAttributeType
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<borrower_attribute_types>
20 =cut
22 __PACKAGE__->table("borrower_attribute_types");
24 =head1 ACCESSORS
26 =head2 code
28 data_type: 'varchar'
29 is_nullable: 0
30 size: 10
32 =head2 description
34 data_type: 'varchar'
35 is_nullable: 0
36 size: 255
38 =head2 repeatable
40 data_type: 'tinyint'
41 default_value: 0
42 is_nullable: 0
44 =head2 unique_id
46 data_type: 'tinyint'
47 default_value: 0
48 is_nullable: 0
50 =head2 opac_display
52 data_type: 'tinyint'
53 default_value: 0
54 is_nullable: 0
56 =head2 opac_editable
58 data_type: 'tinyint'
59 default_value: 0
60 is_nullable: 0
62 =head2 staff_searchable
64 data_type: 'tinyint'
65 default_value: 0
66 is_nullable: 0
68 =head2 authorised_value_category
70 data_type: 'varchar'
71 is_nullable: 1
72 size: 32
74 =head2 display_checkout
76 data_type: 'tinyint'
77 default_value: 0
78 is_nullable: 0
80 =head2 category_code
82 data_type: 'varchar'
83 is_nullable: 1
84 size: 10
86 =head2 class
88 data_type: 'varchar'
89 default_value: (empty string)
90 is_nullable: 0
91 size: 255
93 =cut
95 __PACKAGE__->add_columns(
96 "code",
97 { data_type => "varchar", is_nullable => 0, size => 10 },
98 "description",
99 { data_type => "varchar", is_nullable => 0, size => 255 },
100 "repeatable",
101 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
102 "unique_id",
103 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
104 "opac_display",
105 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
106 "opac_editable",
107 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
108 "staff_searchable",
109 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
110 "authorised_value_category",
111 { data_type => "varchar", is_nullable => 1, size => 32 },
112 "display_checkout",
113 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
114 "category_code",
115 { data_type => "varchar", is_nullable => 1, size => 10 },
116 "class",
117 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
120 =head1 PRIMARY KEY
122 =over 4
124 =item * L</code>
126 =back
128 =cut
130 __PACKAGE__->set_primary_key("code");
132 =head1 RELATIONS
134 =head2 borrower_attribute_types_branches
136 Type: has_many
138 Related object: L<Koha::Schema::Result::BorrowerAttributeTypesBranch>
140 =cut
142 __PACKAGE__->has_many(
143 "borrower_attribute_types_branches",
144 "Koha::Schema::Result::BorrowerAttributeTypesBranch",
145 { "foreign.bat_code" => "self.code" },
146 { cascade_copy => 0, cascade_delete => 0 },
149 =head2 borrower_attributes
151 Type: has_many
153 Related object: L<Koha::Schema::Result::BorrowerAttribute>
155 =cut
157 __PACKAGE__->has_many(
158 "borrower_attributes",
159 "Koha::Schema::Result::BorrowerAttribute",
160 { "foreign.code" => "self.code" },
161 { cascade_copy => 0, cascade_delete => 0 },
165 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-25 20:32:12
166 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gsPR8PuUUZHFUkr3MIbTpw
168 sub koha_object_class {
169 'Koha::Patron::Attribute::Type';
171 sub koha_objects_class {
172 'Koha::Patron::Attribute::Types';