Main Koha release repository https://koha-community.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

126 lines
2.1 KiB

use utf8;
package Koha::Schema::Result::DeletedbiblioMetadata;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Koha::Schema::Result::DeletedbiblioMetadata
=cut
use strict;
use warnings;
use base 'DBIx::Class::Core';
=head1 TABLE: C<deletedbiblio_metadata>
=cut
__PACKAGE__->table("deletedbiblio_metadata");
=head1 ACCESSORS
=head2 id
data_type: 'integer'
is_auto_increment: 1
is_nullable: 0
=head2 biblionumber
data_type: 'integer'
is_foreign_key: 1
is_nullable: 0
=head2 format
data_type: 'varchar'
is_nullable: 0
size: 16
=head2 marcflavour
data_type: 'varchar'
is_nullable: 0
size: 16
=head2 metadata
data_type: 'longtext'
is_nullable: 0
=cut
__PACKAGE__->add_columns(
"id",
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
"biblionumber",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"format",
{ data_type => "varchar", is_nullable => 0, size => 16 },
"marcflavour",
{ data_type => "varchar", is_nullable => 0, size => 16 },
"metadata",
{ data_type => "longtext", is_nullable => 0 },
);
=head1 PRIMARY KEY
=over 4
=item * L</id>
=back
=cut
__PACKAGE__->set_primary_key("id");
=head1 UNIQUE CONSTRAINTS
=head2 C<deletedbiblio_metadata_uniq_key>
=over 4
=item * L</biblionumber>
=item * L</format>
=item * L</marcflavour>
=back
=cut
__PACKAGE__->add_unique_constraint(
"deletedbiblio_metadata_uniq_key",
["biblionumber", "format", "marcflavour"],
);
=head1 RELATIONS
=head2 biblionumber
Type: belongs_to
Related object: L<Koha::Schema::Result::Deletedbiblio>
=cut
__PACKAGE__->belongs_to(
"biblionumber",
"Koha::Schema::Result::Deletedbiblio",
{ biblionumber => "biblionumber" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hKgy8bBepvfP/ZYPApJnwQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;