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 data_type: 'timestamp'
58 datetime_undef_if_invalid: 1
59 default_value: current_timestamp
64 __PACKAGE__
->add_columns(
66 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
68 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
70 { data_type
=> "varchar", is_nullable
=> 0, size
=> 16 },
72 { data_type
=> "varchar", is_nullable
=> 0, size
=> 16 },
74 { data_type
=> "longtext", is_nullable
=> 0 },
77 data_type
=> "timestamp",
78 datetime_undef_if_invalid
=> 1,
79 default_value
=> \"current_timestamp
",
94 __PACKAGE__->set_primary_key("id
");
96 =head1 UNIQUE CONSTRAINTS
98 =head2 C<biblio_metadata_uniq_key>
102 =item * L</biblionumber>
112 __PACKAGE__->add_unique_constraint(
113 "biblio_metadata_uniq_key
",
114 ["biblionumber
", "format
", "schema
"],
123 Related object: L<Koha::Schema::Result::Biblio>
127 __PACKAGE__->belongs_to(
129 "Koha
::Schema
::Result
::Biblio
",
130 { biblionumber => "biblionumber
" },
131 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
135 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-01-30 11:34:16
136 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FJk/YOw8Y/QRmmPPL3G5qQ
138 sub koha_object_class {
139 'Koha::Biblio::Metadatas';