Bug 32257: Label for patron attributes misaligned
[koha-ffzg.git] / Koha / Schema / Result / AuthSubfieldStructure.pm
1 use utf8;
2 package Koha::Schema::Result::AuthSubfieldStructure;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::AuthSubfieldStructure
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<auth_subfield_structure>
19
20 =cut
21
22 __PACKAGE__->table("auth_subfield_structure");
23
24 =head1 ACCESSORS
25
26 =head2 authtypecode
27
28   data_type: 'varchar'
29   default_value: (empty string)
30   is_foreign_key: 1
31   is_nullable: 0
32   size: 10
33
34 =head2 tagfield
35
36   data_type: 'varchar'
37   default_value: (empty string)
38   is_nullable: 0
39   size: 3
40
41 =head2 tagsubfield
42
43   data_type: 'varchar'
44   default_value: (empty string)
45   is_nullable: 0
46   size: 1
47
48 =head2 liblibrarian
49
50   data_type: 'varchar'
51   default_value: (empty string)
52   is_nullable: 0
53   size: 255
54
55 =head2 libopac
56
57   data_type: 'varchar'
58   default_value: (empty string)
59   is_nullable: 0
60   size: 255
61
62 =head2 repeatable
63
64   data_type: 'tinyint'
65   default_value: 0
66   is_nullable: 0
67
68 =head2 mandatory
69
70   data_type: 'tinyint'
71   default_value: 0
72   is_nullable: 0
73
74 =head2 tab
75
76   data_type: 'tinyint'
77   is_nullable: 1
78
79 =head2 authorised_value
80
81   data_type: 'varchar'
82   is_nullable: 1
83   size: 32
84
85 =head2 value_builder
86
87   data_type: 'varchar'
88   is_nullable: 1
89   size: 80
90
91 =head2 seealso
92
93   data_type: 'varchar'
94   is_nullable: 1
95   size: 255
96
97 =head2 isurl
98
99   data_type: 'tinyint'
100   is_nullable: 1
101
102 =head2 hidden
103
104   data_type: 'tinyint'
105   default_value: 0
106   is_nullable: 0
107
108 =head2 linkid
109
110   data_type: 'tinyint'
111   default_value: 0
112   is_nullable: 0
113
114 =head2 kohafield
115
116   data_type: 'varchar'
117   default_value: (empty string)
118   is_nullable: 1
119   size: 45
120
121 =head2 frameworkcode
122
123   data_type: 'varchar'
124   default_value: (empty string)
125   is_nullable: 0
126   size: 10
127
128 =head2 defaultvalue
129
130   data_type: 'mediumtext'
131   is_nullable: 1
132
133 =head2 display_order
134
135   data_type: 'integer'
136   default_value: 0
137   is_nullable: 0
138
139 =cut
140
141 __PACKAGE__->add_columns(
142   "authtypecode",
143   {
144     data_type => "varchar",
145     default_value => "",
146     is_foreign_key => 1,
147     is_nullable => 0,
148     size => 10,
149   },
150   "tagfield",
151   { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
152   "tagsubfield",
153   { data_type => "varchar", default_value => "", is_nullable => 0, size => 1 },
154   "liblibrarian",
155   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
156   "libopac",
157   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
158   "repeatable",
159   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
160   "mandatory",
161   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
162   "tab",
163   { data_type => "tinyint", is_nullable => 1 },
164   "authorised_value",
165   { data_type => "varchar", is_nullable => 1, size => 32 },
166   "value_builder",
167   { data_type => "varchar", is_nullable => 1, size => 80 },
168   "seealso",
169   { data_type => "varchar", is_nullable => 1, size => 255 },
170   "isurl",
171   { data_type => "tinyint", is_nullable => 1 },
172   "hidden",
173   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
174   "linkid",
175   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
176   "kohafield",
177   { data_type => "varchar", default_value => "", is_nullable => 1, size => 45 },
178   "frameworkcode",
179   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
180   "defaultvalue",
181   { data_type => "mediumtext", is_nullable => 1 },
182   "display_order",
183   { data_type => "integer", default_value => 0, is_nullable => 0 },
184 );
185
186 =head1 PRIMARY KEY
187
188 =over 4
189
190 =item * L</authtypecode>
191
192 =item * L</tagfield>
193
194 =item * L</tagsubfield>
195
196 =back
197
198 =cut
199
200 __PACKAGE__->set_primary_key("authtypecode", "tagfield", "tagsubfield");
201
202 =head1 RELATIONS
203
204 =head2 authtypecode
205
206 Type: belongs_to
207
208 Related object: L<Koha::Schema::Result::AuthType>
209
210 =cut
211
212 __PACKAGE__->belongs_to(
213   "authtypecode",
214   "Koha::Schema::Result::AuthType",
215   { authtypecode => "authtypecode" },
216   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
217 );
218
219
220 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-19 06:49:06
221 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c6rPINoF/ZP4YzXU1VR+UQ
222
223 sub koha_object_class {
224     'Koha::Authority::Subfield';
225 }
226 sub koha_objects_class {
227     'Koha::Authority::Subfields';
228 }
229
230 1;