Bug 13069 - (follow-up) Enable sort by title to ignore articles
[koha.git] / Koha / Schema / Result / Overduerule.pm
1 use utf8;
2 package Koha::Schema::Result::Overduerule;
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::Overduerule
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<overduerules>
19
20 =cut
21
22 __PACKAGE__->table("overduerules");
23
24 =head1 ACCESSORS
25
26 =head2 branchcode
27
28   data_type: 'varchar'
29   default_value: (empty string)
30   is_nullable: 0
31   size: 10
32
33 =head2 categorycode
34
35   data_type: 'varchar'
36   default_value: (empty string)
37   is_nullable: 0
38   size: 10
39
40 =head2 delay1
41
42   data_type: 'integer'
43   is_nullable: 1
44
45 =head2 letter1
46
47   data_type: 'varchar'
48   is_nullable: 1
49   size: 20
50
51 =head2 debarred1
52
53   data_type: 'varchar'
54   default_value: 0
55   is_nullable: 1
56   size: 1
57
58 =head2 delay2
59
60   data_type: 'integer'
61   is_nullable: 1
62
63 =head2 debarred2
64
65   data_type: 'varchar'
66   default_value: 0
67   is_nullable: 1
68   size: 1
69
70 =head2 letter2
71
72   data_type: 'varchar'
73   is_nullable: 1
74   size: 20
75
76 =head2 delay3
77
78   data_type: 'integer'
79   is_nullable: 1
80
81 =head2 letter3
82
83   data_type: 'varchar'
84   is_nullable: 1
85   size: 20
86
87 =head2 debarred3
88
89   data_type: 'integer'
90   default_value: 0
91   is_nullable: 1
92
93 =cut
94
95 __PACKAGE__->add_columns(
96   "branchcode",
97   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
98   "categorycode",
99   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
100   "delay1",
101   { data_type => "integer", is_nullable => 1 },
102   "letter1",
103   { data_type => "varchar", is_nullable => 1, size => 20 },
104   "debarred1",
105   { data_type => "varchar", default_value => 0, is_nullable => 1, size => 1 },
106   "delay2",
107   { data_type => "integer", is_nullable => 1 },
108   "debarred2",
109   { data_type => "varchar", default_value => 0, is_nullable => 1, size => 1 },
110   "letter2",
111   { data_type => "varchar", is_nullable => 1, size => 20 },
112   "delay3",
113   { data_type => "integer", is_nullable => 1 },
114   "letter3",
115   { data_type => "varchar", is_nullable => 1, size => 20 },
116   "debarred3",
117   { data_type => "integer", default_value => 0, is_nullable => 1 },
118 );
119
120 =head1 PRIMARY KEY
121
122 =over 4
123
124 =item * L</branchcode>
125
126 =item * L</categorycode>
127
128 =back
129
130 =cut
131
132 __PACKAGE__->set_primary_key("branchcode", "categorycode");
133
134 =head1 RELATIONS
135
136 =head2 overduerules_transport_types
137
138 Type: has_many
139
140 Related object: L<Koha::Schema::Result::OverduerulesTransportType>
141
142 =cut
143
144 __PACKAGE__->has_many(
145   "overduerules_transport_types",
146   "Koha::Schema::Result::OverduerulesTransportType",
147   {
148     "foreign.branchcode"   => "self.branchcode",
149     "foreign.categorycode" => "self.categorycode",
150   },
151   { cascade_copy => 0, cascade_delete => 0 },
152 );
153
154
155 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-02 18:04:32
156 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zQK4gTxkrPPwJzujbZxxdg
157
158
159 # You can replace this text with custom content, and it will be preserved on regeneration
160 1;