06bc0c9db2100aa9b0a051f38a4ad3224753d103
[koha-equinox.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: 10
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 =cut
134
135 __PACKAGE__->add_columns(
136   "authtypecode",
137   {
138     data_type => "varchar",
139     default_value => "",
140     is_foreign_key => 1,
141     is_nullable => 0,
142     size => 10,
143   },
144   "tagfield",
145   { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
146   "tagsubfield",
147   { data_type => "varchar", default_value => "", is_nullable => 0, size => 1 },
148   "liblibrarian",
149   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
150   "libopac",
151   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
152   "repeatable",
153   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
154   "mandatory",
155   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
156   "tab",
157   { data_type => "tinyint", is_nullable => 1 },
158   "authorised_value",
159   { data_type => "varchar", is_nullable => 1, size => 10 },
160   "value_builder",
161   { data_type => "varchar", is_nullable => 1, size => 80 },
162   "seealso",
163   { data_type => "varchar", is_nullable => 1, size => 255 },
164   "isurl",
165   { data_type => "tinyint", is_nullable => 1 },
166   "hidden",
167   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
168   "linkid",
169   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
170   "kohafield",
171   { data_type => "varchar", default_value => "", is_nullable => 1, size => 45 },
172   "frameworkcode",
173   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
174   "defaultvalue",
175   { data_type => "mediumtext", is_nullable => 1 },
176 );
177
178 =head1 PRIMARY KEY
179
180 =over 4
181
182 =item * L</authtypecode>
183
184 =item * L</tagfield>
185
186 =item * L</tagsubfield>
187
188 =back
189
190 =cut
191
192 __PACKAGE__->set_primary_key("authtypecode", "tagfield", "tagsubfield");
193
194 =head1 RELATIONS
195
196 =head2 authtypecode
197
198 Type: belongs_to
199
200 Related object: L<Koha::Schema::Result::AuthType>
201
202 =cut
203
204 __PACKAGE__->belongs_to(
205   "authtypecode",
206   "Koha::Schema::Result::AuthType",
207   { authtypecode => "authtypecode" },
208   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
209 );
210
211
212 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
213 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5Prv/DCQk32mTQaqtYhUuA
214
215
216 # You can replace this text with custom content, and it will be preserved on regeneration
217 1;