Bug 21797: Update two-column templates with Bootstrap grid: Acquisitions part 5
[koha.git] / Koha / Schema / Result / AuthSubfieldStructure.pm
blob06bc0c9db2100aa9b0a051f38a4ad3224753d103
1 use utf8;
2 package Koha::Schema::Result::AuthSubfieldStructure;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::AuthSubfieldStructure
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<auth_subfield_structure>
20 =cut
22 __PACKAGE__->table("auth_subfield_structure");
24 =head1 ACCESSORS
26 =head2 authtypecode
28 data_type: 'varchar'
29 default_value: (empty string)
30 is_foreign_key: 1
31 is_nullable: 0
32 size: 10
34 =head2 tagfield
36 data_type: 'varchar'
37 default_value: (empty string)
38 is_nullable: 0
39 size: 3
41 =head2 tagsubfield
43 data_type: 'varchar'
44 default_value: (empty string)
45 is_nullable: 0
46 size: 1
48 =head2 liblibrarian
50 data_type: 'varchar'
51 default_value: (empty string)
52 is_nullable: 0
53 size: 255
55 =head2 libopac
57 data_type: 'varchar'
58 default_value: (empty string)
59 is_nullable: 0
60 size: 255
62 =head2 repeatable
64 data_type: 'tinyint'
65 default_value: 0
66 is_nullable: 0
68 =head2 mandatory
70 data_type: 'tinyint'
71 default_value: 0
72 is_nullable: 0
74 =head2 tab
76 data_type: 'tinyint'
77 is_nullable: 1
79 =head2 authorised_value
81 data_type: 'varchar'
82 is_nullable: 1
83 size: 10
85 =head2 value_builder
87 data_type: 'varchar'
88 is_nullable: 1
89 size: 80
91 =head2 seealso
93 data_type: 'varchar'
94 is_nullable: 1
95 size: 255
97 =head2 isurl
99 data_type: 'tinyint'
100 is_nullable: 1
102 =head2 hidden
104 data_type: 'tinyint'
105 default_value: 0
106 is_nullable: 0
108 =head2 linkid
110 data_type: 'tinyint'
111 default_value: 0
112 is_nullable: 0
114 =head2 kohafield
116 data_type: 'varchar'
117 default_value: (empty string)
118 is_nullable: 1
119 size: 45
121 =head2 frameworkcode
123 data_type: 'varchar'
124 default_value: (empty string)
125 is_nullable: 0
126 size: 10
128 =head2 defaultvalue
130 data_type: 'mediumtext'
131 is_nullable: 1
133 =cut
135 __PACKAGE__->add_columns(
136 "authtypecode",
138 data_type => "varchar",
139 default_value => "",
140 is_foreign_key => 1,
141 is_nullable => 0,
142 size => 10,
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 },
178 =head1 PRIMARY KEY
180 =over 4
182 =item * L</authtypecode>
184 =item * L</tagfield>
186 =item * L</tagsubfield>
188 =back
190 =cut
192 __PACKAGE__->set_primary_key("authtypecode", "tagfield", "tagsubfield");
194 =head1 RELATIONS
196 =head2 authtypecode
198 Type: belongs_to
200 Related object: L<Koha::Schema::Result::AuthType>
202 =cut
204 __PACKAGE__->belongs_to(
205 "authtypecode",
206 "Koha::Schema::Result::AuthType",
207 { authtypecode => "authtypecode" },
208 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
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
216 # You can replace this text with custom content, and it will be preserved on regeneration