2 package Koha::Schema::Result::BiblioMetadata;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::BiblioMetadata
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<biblio_metadata>
22 __PACKAGE__->table("biblio_metadata");
57 __PACKAGE__->add_columns(
59 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
61 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
63 { data_type => "varchar", is_nullable => 0, size => 16 },
65 { data_type => "varchar", is_nullable => 0, size => 16 },
67 { data_type => "longtext", is_nullable => 0 },
80 __PACKAGE__->set_primary_key("id");
82 =head1 UNIQUE CONSTRAINTS
84 =head2 C<biblio_metadata_uniq_key>
88 =item * L</biblionumber>
92 =item * L</marcflavour>
98 __PACKAGE__->add_unique_constraint(
99 "biblio_metadata_uniq_key",
100 ["biblionumber", "format", "marcflavour"],
109 Related object: L<Koha::Schema::Result::Biblio>
113 __PACKAGE__->belongs_to(
115 "Koha::Schema::Result::Biblio",
116 { biblionumber => "biblionumber" },
117 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
121 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
122 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LoYje8i9pvKcBn8DQwH/Sg
125 # You can replace this text with custom code or comments, and it will be preserved on regeneration