Bug 13069 - (follow-up) Enable sort by title to ignore articles
[koha.git] / Koha / Schema / Result / BranchBorrowerCircRule.pm
1 use utf8;
2 package Koha::Schema::Result::BranchBorrowerCircRule;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::BranchBorrowerCircRule
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<branch_borrower_circ_rules>
19
20 =cut
21
22 __PACKAGE__->table("branch_borrower_circ_rules");
23
24 =head1 ACCESSORS
25
26 =head2 branchcode
27
28   data_type: 'varchar'
29   is_foreign_key: 1
30   is_nullable: 0
31   size: 10
32
33 =head2 categorycode
34
35   data_type: 'varchar'
36   is_foreign_key: 1
37   is_nullable: 0
38   size: 10
39
40 =head2 maxissueqty
41
42   data_type: 'integer'
43   is_nullable: 1
44
45 =cut
46
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 },
54 );
55
56 =head1 PRIMARY KEY
57
58 =over 4
59
60 =item * L</categorycode>
61
62 =item * L</branchcode>
63
64 =back
65
66 =cut
67
68 __PACKAGE__->set_primary_key("categorycode", "branchcode");
69
70 =head1 RELATIONS
71
72 =head2 branchcode
73
74 Type: belongs_to
75
76 Related object: L<Koha::Schema::Result::Branch>
77
78 =cut
79
80 __PACKAGE__->belongs_to(
81   "branchcode",
82   "Koha::Schema::Result::Branch",
83   { branchcode => "branchcode" },
84   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
85 );
86
87 =head2 categorycode
88
89 Type: belongs_to
90
91 Related object: L<Koha::Schema::Result::Category>
92
93 =cut
94
95 __PACKAGE__->belongs_to(
96   "categorycode",
97   "Koha::Schema::Result::Category",
98   { categorycode => "categorycode" },
99   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
100 );
101
102
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
105
106
107 # You can replace this text with custom content, and it will be preserved on regeneration
108 1;