2 package Koha::Schema::Result::MarcSubfieldStructure;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::MarcSubfieldStructure
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<marc_subfield_structure>
22 __PACKAGE__->table("marc_subfield_structure");
29 default_value: (empty string)
36 default_value: (empty string)
43 default_value: (empty string)
50 default_value: (empty string)
83 =head2 authorised_value
116 default_value: (empty string)
134 data_type: 'mediumtext'
145 __PACKAGE__->add_columns(
147 { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
149 { data_type => "varchar", default_value => "", is_nullable => 0, size => 1 },
151 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
153 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
155 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
157 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
159 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
161 { data_type => "varchar", is_nullable => 1, size => 40 },
163 { data_type => "tinyint", is_nullable => 1 },
165 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 32 },
167 { data_type => "varchar", is_nullable => 1, size => 20 },
169 { data_type => "varchar", is_nullable => 1, size => 80 },
171 { data_type => "tinyint", is_nullable => 1 },
173 { data_type => "tinyint", default_value => 8, is_nullable => 0 },
175 { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
177 { data_type => "varchar", is_nullable => 1, size => 1100 },
179 { data_type => "varchar", is_nullable => 1, size => 80 },
181 { data_type => "mediumtext", is_nullable => 1 },
183 { data_type => "integer", default_value => 9999, is_nullable => 0 },
190 =item * L</frameworkcode>
194 =item * L</tagsubfield>
200 __PACKAGE__->set_primary_key("frameworkcode", "tagfield", "tagsubfield");
204 =head2 authorised_value
208 Related object: L<Koha::Schema::Result::AuthorisedValueCategory>
212 __PACKAGE__->belongs_to(
214 "Koha::Schema::Result::AuthorisedValueCategory",
215 { category_name => "authorised_value" },
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