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)
77 =head2 authorised_value
109 default_value: (empty string)
127 data_type: 'mediumtext'
138 __PACKAGE__->add_columns(
140 { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
142 { data_type => "varchar", default_value => "", is_nullable => 0, size => 1 },
144 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
146 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
148 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
150 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
152 { data_type => "varchar", is_nullable => 1, size => 40 },
154 { data_type => "tinyint", is_nullable => 1 },
156 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 32 },
158 { data_type => "varchar", is_nullable => 1, size => 20 },
160 { data_type => "varchar", is_nullable => 1, size => 80 },
162 { data_type => "tinyint", is_nullable => 1 },
164 { data_type => "tinyint", is_nullable => 1 },
166 { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
168 { data_type => "varchar", is_nullable => 1, size => 1100 },
170 { data_type => "varchar", is_nullable => 1, size => 80 },
172 { data_type => "mediumtext", is_nullable => 1 },
174 { data_type => "integer", default_value => 9999, is_nullable => 0 },
181 =item * L</frameworkcode>
185 =item * L</tagsubfield>
191 __PACKAGE__->set_primary_key("frameworkcode", "tagfield", "tagsubfield");
195 =head2 authorised_value
199 Related object: L<Koha::Schema::Result::AuthorisedValueCategory>
203 __PACKAGE__->belongs_to(
205 "Koha::Schema::Result::AuthorisedValueCategory",
206 { category_name => "authorised_value" },
210 on_delete => "SET NULL",
211 on_update => "CASCADE",
216 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-02 18:57:57
217 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:18iBiNNiwTSYtKk28aoLJg
220 # You can replace this text with custom content, and it will be preserved on regeneration