Bug 8798: (follow-up) update schema files
[koha.git] / Koha / Schema / Result / OldReserve.pm
1 package Koha::Schema::Result::OldReserve;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::OldReserve
15
16 =cut
17
18 __PACKAGE__->table("old_reserves");
19
20 =head1 ACCESSORS
21
22 =head2 reserve_id
23
24   data_type: 'integer'
25   is_nullable: 0
26
27 =head2 borrowernumber
28
29   data_type: 'integer'
30   is_foreign_key: 1
31   is_nullable: 1
32
33 =head2 reservedate
34
35   data_type: 'date'
36   is_nullable: 1
37
38 =head2 biblionumber
39
40   data_type: 'integer'
41   is_foreign_key: 1
42   is_nullable: 1
43
44 =head2 constrainttype
45
46   data_type: 'varchar'
47   is_nullable: 1
48   size: 1
49
50 =head2 branchcode
51
52   data_type: 'varchar'
53   is_nullable: 1
54   size: 10
55
56 =head2 notificationdate
57
58   data_type: 'date'
59   is_nullable: 1
60
61 =head2 reminderdate
62
63   data_type: 'date'
64   is_nullable: 1
65
66 =head2 cancellationdate
67
68   data_type: 'date'
69   is_nullable: 1
70
71 =head2 reservenotes
72
73   data_type: 'mediumtext'
74   is_nullable: 1
75
76 =head2 priority
77
78   data_type: 'smallint'
79   is_nullable: 1
80
81 =head2 found
82
83   data_type: 'varchar'
84   is_nullable: 1
85   size: 1
86
87 =head2 timestamp
88
89   data_type: 'timestamp'
90   default_value: current_timestamp
91   is_nullable: 0
92
93 =head2 itemnumber
94
95   data_type: 'integer'
96   is_foreign_key: 1
97   is_nullable: 1
98
99 =head2 waitingdate
100
101   data_type: 'date'
102   is_nullable: 1
103
104 =head2 expirationdate
105
106   data_type: 'date'
107   is_nullable: 1
108
109 =head2 lowestpriority
110
111   data_type: 'tinyint'
112   is_nullable: 0
113
114 =head2 suspend
115
116   data_type: 'tinyint'
117   default_value: 0
118   is_nullable: 0
119
120 =head2 suspend_until
121
122   data_type: 'datetime'
123   is_nullable: 1
124
125 =head2 maxpickupdate
126
127   data_type: 'date'
128   is_nullable: 1
129
130 =cut
131
132 __PACKAGE__->add_columns(
133   "reserve_id",
134   { data_type => "integer", is_nullable => 0 },
135   "borrowernumber",
136   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
137   "reservedate",
138   { data_type => "date", is_nullable => 1 },
139   "biblionumber",
140   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
141   "constrainttype",
142   { data_type => "varchar", is_nullable => 1, size => 1 },
143   "branchcode",
144   { data_type => "varchar", is_nullable => 1, size => 10 },
145   "notificationdate",
146   { data_type => "date", is_nullable => 1 },
147   "reminderdate",
148   { data_type => "date", is_nullable => 1 },
149   "cancellationdate",
150   { data_type => "date", is_nullable => 1 },
151   "reservenotes",
152   { data_type => "mediumtext", is_nullable => 1 },
153   "priority",
154   { data_type => "smallint", is_nullable => 1 },
155   "found",
156   { data_type => "varchar", is_nullable => 1, size => 1 },
157   "timestamp",
158   {
159     data_type     => "timestamp",
160     default_value => \"current_timestamp",
161     is_nullable   => 0,
162   },
163   "itemnumber",
164   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
165   "waitingdate",
166   { data_type => "date", is_nullable => 1 },
167   "expirationdate",
168   { data_type => "date", is_nullable => 1 },
169   "lowestpriority",
170   { data_type => "tinyint", is_nullable => 0 },
171   "suspend",
172   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
173   "suspend_until",
174   { data_type => "datetime", is_nullable => 1 },
175   "maxpickupdate",
176   { data_type => "date", is_nullable => 1 },
177 );
178 __PACKAGE__->set_primary_key("reserve_id");
179
180 =head1 RELATIONS
181
182 =head2 borrowernumber
183
184 Type: belongs_to
185
186 Related object: L<Koha::Schema::Result::Borrower>
187
188 =cut
189
190 __PACKAGE__->belongs_to(
191   "borrowernumber",
192   "Koha::Schema::Result::Borrower",
193   { borrowernumber => "borrowernumber" },
194   { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
195 );
196
197 =head2 biblionumber
198
199 Type: belongs_to
200
201 Related object: L<Koha::Schema::Result::Biblio>
202
203 =cut
204
205 __PACKAGE__->belongs_to(
206   "biblionumber",
207   "Koha::Schema::Result::Biblio",
208   { biblionumber => "biblionumber" },
209   { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
210 );
211
212 =head2 itemnumber
213
214 Type: belongs_to
215
216 Related object: L<Koha::Schema::Result::Item>
217
218 =cut
219
220 __PACKAGE__->belongs_to(
221   "itemnumber",
222   "Koha::Schema::Result::Item",
223   { itemnumber => "itemnumber" },
224   { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
225 );
226
227
228 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
229 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ni1RNxdeOoypM+GwYu1vAQ
230
231
232 # You can replace this text with custom content, and it will be preserved on regeneration
233 1;