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.
 
 
 
 
 
 

164 lines
2.9 KiB

use utf8;
package Koha::Schema::Result::HoldFillTarget;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Koha::Schema::Result::HoldFillTarget
=cut
use strict;
use warnings;
use base 'DBIx::Class::Core';
=head1 TABLE: C<hold_fill_targets>
=cut
__PACKAGE__->table("hold_fill_targets");
=head1 ACCESSORS
=head2 borrowernumber
data_type: 'integer'
is_foreign_key: 1
is_nullable: 0
=head2 biblionumber
data_type: 'integer'
is_foreign_key: 1
is_nullable: 0
=head2 itemnumber
data_type: 'integer'
is_foreign_key: 1
is_nullable: 0
=head2 source_branchcode
data_type: 'varchar'
is_foreign_key: 1
is_nullable: 1
size: 10
=head2 item_level_request
data_type: 'tinyint'
default_value: 0
is_nullable: 0
=head2 reserve_id
data_type: 'integer'
is_nullable: 1
=cut
__PACKAGE__->add_columns(
"borrowernumber",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"biblionumber",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"itemnumber",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"source_branchcode",
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
"item_level_request",
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
"reserve_id",
{ data_type => "integer", is_nullable => 1 },
);
=head1 PRIMARY KEY
=over 4
=item * L</itemnumber>
=back
=cut
__PACKAGE__->set_primary_key("itemnumber");
=head1 RELATIONS
=head2 biblionumber
Type: belongs_to
Related object: L<Koha::Schema::Result::Biblio>
=cut
__PACKAGE__->belongs_to(
"biblionumber",
"Koha::Schema::Result::Biblio",
{ biblionumber => "biblionumber" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
=head2 borrowernumber
Type: belongs_to
Related object: L<Koha::Schema::Result::Borrower>
=cut
__PACKAGE__->belongs_to(
"borrowernumber",
"Koha::Schema::Result::Borrower",
{ borrowernumber => "borrowernumber" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
=head2 itemnumber
Type: belongs_to
Related object: L<Koha::Schema::Result::Item>
=cut
__PACKAGE__->belongs_to(
"itemnumber",
"Koha::Schema::Result::Item",
{ itemnumber => "itemnumber" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
=head2 source_branchcode
Type: belongs_to
Related object: L<Koha::Schema::Result::Branch>
=cut
__PACKAGE__->belongs_to(
"source_branchcode",
"Koha::Schema::Result::Branch",
{ branchcode => "source_branchcode" },
{
is_deferrable => 1,
join_type => "LEFT",
on_delete => "CASCADE",
on_update => "CASCADE",
},
);
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-08-25 09:54:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SAi7lh09AVqlzXMLvLgkQg
# You can replace this text with custom content, and it will be preserved on regeneration
1;