2 package Koha::Schema::Result::AdditionalField;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::AdditionalField
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<additional_fields>
22 __PACKAGE__->table("additional_fields");
35 default_value: (empty string)
42 default_value: (empty string)
46 =head2 authorised_value_category
49 default_value: (empty string)
56 default_value: (empty string)
68 __PACKAGE__->add_columns(
70 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
72 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
74 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
75 "authorised_value_category",
76 { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 },
78 { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 },
80 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
93 __PACKAGE__->set_primary_key("id");
95 =head1 UNIQUE CONSTRAINTS
101 =item * L</tablename>
109 __PACKAGE__->add_unique_constraint("fields_uniq", ["tablename", "name"]);
113 =head2 additional_field_values
117 Related object: L<Koha::Schema::Result::AdditionalFieldValue>
121 __PACKAGE__->has_many(
122 "additional_field_values",
123 "Koha::Schema::Result::AdditionalFieldValue",
124 { "foreign.field_id" => "self.id" },
125 { cascade_copy => 0, cascade_delete => 0 },
129 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-10-02 15:12:02
130 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vvz9GJNkU4K7bftDNuRHVA
133 # You can replace this text with custom code or comments, and it will be preserved on regeneration