2 package Koha::Schema::Result::AdditionalFieldValue;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::AdditionalFieldValue
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<additional_field_values>
22 __PACKAGE__->table("additional_field_values");
32 primary key identifier
40 foreign key references additional_fields(id)
52 default_value: (empty string)
60 __PACKAGE__->add_columns(
62 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
64 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
66 { data_type => "integer", is_nullable => 0 },
68 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
81 __PACKAGE__->set_primary_key("id");
83 =head1 UNIQUE CONSTRAINTS
85 =head2 C<field_record>
97 __PACKAGE__->add_unique_constraint("field_record", ["field_id", "record_id"]);
105 Related object: L<Koha::Schema::Result::AdditionalField>
109 __PACKAGE__->belongs_to(
111 "Koha::Schema::Result::AdditionalField",
112 { id => "field_id" },
113 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
117 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
118 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6Y4sBMbKYSbGN7fAy7OhEQ
121 # You can replace this text with custom code or comments, and it will be preserved on regeneration