Bug 14279: Remove CGI::scrolling_list from issues_avg_stats.pl
[koha.git] / Koha / Schema / Result / BranchBorrowerCircRule.pm
blobfce2914f724111dd74a9f84e6b4311583ab2d748
1 use utf8;
2 package Koha::Schema::Result::BranchBorrowerCircRule;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::BranchBorrowerCircRule
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<branch_borrower_circ_rules>
20 =cut
22 __PACKAGE__->table("branch_borrower_circ_rules");
24 =head1 ACCESSORS
26 =head2 branchcode
28 data_type: 'varchar'
29 is_foreign_key: 1
30 is_nullable: 0
31 size: 10
33 =head2 categorycode
35 data_type: 'varchar'
36 is_foreign_key: 1
37 is_nullable: 0
38 size: 10
40 =head2 maxissueqty
42 data_type: 'integer'
43 is_nullable: 1
45 =cut
47 __PACKAGE__->add_columns(
48 "branchcode",
49 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
50 "categorycode",
51 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
52 "maxissueqty",
53 { data_type => "integer", is_nullable => 1 },
56 =head1 PRIMARY KEY
58 =over 4
60 =item * L</categorycode>
62 =item * L</branchcode>
64 =back
66 =cut
68 __PACKAGE__->set_primary_key("categorycode", "branchcode");
70 =head1 RELATIONS
72 =head2 branchcode
74 Type: belongs_to
76 Related object: L<Koha::Schema::Result::Branch>
78 =cut
80 __PACKAGE__->belongs_to(
81 "branchcode",
82 "Koha::Schema::Result::Branch",
83 { branchcode => "branchcode" },
84 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
87 =head2 categorycode
89 Type: belongs_to
91 Related object: L<Koha::Schema::Result::Category>
93 =cut
95 __PACKAGE__->belongs_to(
96 "categorycode",
97 "Koha::Schema::Result::Category",
98 { categorycode => "categorycode" },
99 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
103 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
104 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:X24Sil3WTnxoeAa/16tpUQ
107 # You can replace this text with custom content, and it will be preserved on regeneration