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.
125 lines
2.0 KiB
125 lines
2.0 KiB
use utf8;
|
|
package Koha::Schema::Result::Collection;
|
|
|
|
# Created by DBIx::Class::Schema::Loader
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
|
|
|
=head1 NAME
|
|
|
|
Koha::Schema::Result::Collection
|
|
|
|
=cut
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
=head1 TABLE: C<collections>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->table("collections");
|
|
|
|
=head1 ACCESSORS
|
|
|
|
=head2 colId
|
|
|
|
accessor: 'col_id'
|
|
data_type: 'integer'
|
|
is_auto_increment: 1
|
|
is_nullable: 0
|
|
|
|
=head2 colTitle
|
|
|
|
accessor: 'col_title'
|
|
data_type: 'varchar'
|
|
default_value: (empty string)
|
|
is_nullable: 0
|
|
size: 100
|
|
|
|
=head2 colDesc
|
|
|
|
accessor: 'col_desc'
|
|
data_type: 'text'
|
|
is_nullable: 0
|
|
|
|
=head2 colBranchcode
|
|
|
|
accessor: 'col_branchcode'
|
|
data_type: 'varchar'
|
|
is_foreign_key: 1
|
|
is_nullable: 1
|
|
size: 10
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->add_columns(
|
|
"colId",
|
|
{
|
|
accessor => "col_id",
|
|
data_type => "integer",
|
|
is_auto_increment => 1,
|
|
is_nullable => 0,
|
|
},
|
|
"colTitle",
|
|
{
|
|
accessor => "col_title",
|
|
data_type => "varchar",
|
|
default_value => "",
|
|
is_nullable => 0,
|
|
size => 100,
|
|
},
|
|
"colDesc",
|
|
{ accessor => "col_desc", data_type => "text", is_nullable => 0 },
|
|
"colBranchcode",
|
|
{
|
|
accessor => "col_branchcode",
|
|
data_type => "varchar",
|
|
is_foreign_key => 1,
|
|
is_nullable => 1,
|
|
size => 10,
|
|
},
|
|
);
|
|
|
|
=head1 PRIMARY KEY
|
|
|
|
=over 4
|
|
|
|
=item * L</colId>
|
|
|
|
=back
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->set_primary_key("colId");
|
|
|
|
=head1 RELATIONS
|
|
|
|
=head2 col_branchcode
|
|
|
|
Type: belongs_to
|
|
|
|
Related object: L<Koha::Schema::Result::Branch>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->belongs_to(
|
|
"col_branchcode",
|
|
"Koha::Schema::Result::Branch",
|
|
{ branchcode => "colBranchcode" },
|
|
{
|
|
is_deferrable => 1,
|
|
join_type => "LEFT",
|
|
on_delete => "CASCADE",
|
|
on_update => "CASCADE",
|
|
},
|
|
);
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-11-06 15:26:36
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gb7EYny5ULsZw8rYQQ/hjA
|
|
|
|
|
|
# You can replace this text with custom content, and it will be preserved on regeneration
|
|
1;
|
|
|