Bug 25501: Supress warnings on installing translation
[koha.git] / Koha / Schema / Result / MarcSubfieldStructure.pm
blob00f6dce07c922cf85afd5466ee2957c2f7bc9506
1 use utf8;
2 package Koha::Schema::Result::MarcSubfieldStructure;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::MarcSubfieldStructure
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<marc_subfield_structure>
20 =cut
22 __PACKAGE__->table("marc_subfield_structure");
24 =head1 ACCESSORS
26 =head2 tagfield
28 data_type: 'varchar'
29 default_value: (empty string)
30 is_nullable: 0
31 size: 3
33 =head2 tagsubfield
35 data_type: 'varchar'
36 default_value: (empty string)
37 is_nullable: 0
38 size: 1
40 =head2 liblibrarian
42 data_type: 'varchar'
43 default_value: (empty string)
44 is_nullable: 0
45 size: 255
47 =head2 libopac
49 data_type: 'varchar'
50 default_value: (empty string)
51 is_nullable: 0
52 size: 255
54 =head2 repeatable
56 data_type: 'tinyint'
57 default_value: 0
58 is_nullable: 0
60 =head2 mandatory
62 data_type: 'tinyint'
63 default_value: 0
64 is_nullable: 0
66 =head2 important
68 data_type: 'tinyint'
69 default_value: 0
70 is_nullable: 0
72 =head2 kohafield
74 data_type: 'varchar'
75 is_nullable: 1
76 size: 40
78 =head2 tab
80 data_type: 'tinyint'
81 is_nullable: 1
83 =head2 authorised_value
85 data_type: 'varchar'
86 is_foreign_key: 1
87 is_nullable: 1
88 size: 32
90 =head2 authtypecode
92 data_type: 'varchar'
93 is_nullable: 1
94 size: 20
96 =head2 value_builder
98 data_type: 'varchar'
99 is_nullable: 1
100 size: 80
102 =head2 isurl
104 data_type: 'tinyint'
105 is_nullable: 1
107 =head2 hidden
109 data_type: 'tinyint'
110 default_value: 8
111 is_nullable: 0
113 =head2 frameworkcode
115 data_type: 'varchar'
116 default_value: (empty string)
117 is_nullable: 0
118 size: 4
120 =head2 seealso
122 data_type: 'varchar'
123 is_nullable: 1
124 size: 1100
126 =head2 link
128 data_type: 'varchar'
129 is_nullable: 1
130 size: 80
132 =head2 defaultvalue
134 data_type: 'mediumtext'
135 is_nullable: 1
137 =head2 maxlength
139 data_type: 'integer'
140 default_value: 9999
141 is_nullable: 0
143 =cut
145 __PACKAGE__->add_columns(
146 "tagfield",
147 { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
148 "tagsubfield",
149 { data_type => "varchar", default_value => "", is_nullable => 0, size => 1 },
150 "liblibrarian",
151 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
152 "libopac",
153 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
154 "repeatable",
155 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
156 "mandatory",
157 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
158 "important",
159 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
160 "kohafield",
161 { data_type => "varchar", is_nullable => 1, size => 40 },
162 "tab",
163 { data_type => "tinyint", is_nullable => 1 },
164 "authorised_value",
165 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 32 },
166 "authtypecode",
167 { data_type => "varchar", is_nullable => 1, size => 20 },
168 "value_builder",
169 { data_type => "varchar", is_nullable => 1, size => 80 },
170 "isurl",
171 { data_type => "tinyint", is_nullable => 1 },
172 "hidden",
173 { data_type => "tinyint", default_value => 8, is_nullable => 0 },
174 "frameworkcode",
175 { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
176 "seealso",
177 { data_type => "varchar", is_nullable => 1, size => 1100 },
178 "link",
179 { data_type => "varchar", is_nullable => 1, size => 80 },
180 "defaultvalue",
181 { data_type => "mediumtext", is_nullable => 1 },
182 "maxlength",
183 { data_type => "integer", default_value => 9999, is_nullable => 0 },
186 =head1 PRIMARY KEY
188 =over 4
190 =item * L</frameworkcode>
192 =item * L</tagfield>
194 =item * L</tagsubfield>
196 =back
198 =cut
200 __PACKAGE__->set_primary_key("frameworkcode", "tagfield", "tagsubfield");
202 =head1 RELATIONS
204 =head2 authorised_value
206 Type: belongs_to
208 Related object: L<Koha::Schema::Result::AuthorisedValueCategory>
210 =cut
212 __PACKAGE__->belongs_to(
213 "authorised_value",
214 "Koha::Schema::Result::AuthorisedValueCategory",
215 { category_name => "authorised_value" },
217 is_deferrable => 1,
218 join_type => "LEFT",
219 on_delete => "SET NULL",
220 on_update => "CASCADE",
225 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-11 14:36:42
226 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lCe1ZenRM/9rXnRHXhDuSw
229 # You can replace this text with custom content, and it will be preserved on regeneration