]> git.koha-community.org Git - koha.git/blob - Koha/Schema/Result/OldReserve.pm
Bug 8798: DBIx::Class base classes for all Koha tables
[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 =cut
126
127 __PACKAGE__->add_columns(
128   "reserve_id",
129   { data_type => "integer", is_nullable => 0 },
130   "borrowernumber",
131   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
132   "reservedate",
133   { data_type => "date", is_nullable => 1 },
134   "biblionumber",
135   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
136   "constrainttype",
137   { data_type => "varchar", is_nullable => 1, size => 1 },
138   "branchcode",
139   { data_type => "varchar", is_nullable => 1, size => 10 },
140   "notificationdate",
141   { data_type => "date", is_nullable => 1 },
142   "reminderdate",
143   { data_type => "date", is_nullable => 1 },
144   "cancellationdate",
145   { data_type => "date", is_nullable => 1 },
146   "reservenotes",
147   { data_type => "mediumtext", is_nullable => 1 },
148   "priority",
149   { data_type => "smallint", is_nullable => 1 },
150   "found",
151   { data_type => "varchar", is_nullable => 1, size => 1 },
152   "timestamp",
153   {
154     data_type     => "timestamp",
155     default_value => \"current_timestamp",
156     is_nullable   => 0,
157   },
158   "itemnumber",
159   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
160   "waitingdate",
161   { data_type => "date", is_nullable => 1 },
162   "expirationdate",
163   { data_type => "date", is_nullable => 1 },
164   "lowestpriority",
165   { data_type => "tinyint", is_nullable => 0 },
166   "suspend",
167   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
168   "suspend_until",
169   { data_type => "datetime", is_nullable => 1 },
170 );
171 __PACKAGE__->set_primary_key("reserve_id");
172
173 =head1 RELATIONS
174
175 =head2 borrowernumber
176
177 Type: belongs_to
178
179 Related object: L<Koha::Schema::Result::Borrower>
180
181 =cut
182
183 __PACKAGE__->belongs_to(
184   "borrowernumber",
185   "Koha::Schema::Result::Borrower",
186   { borrowernumber => "borrowernumber" },
187   { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
188 );
189
190 =head2 biblionumber
191
192 Type: belongs_to
193
194 Related object: L<Koha::Schema::Result::Biblio>
195
196 =cut
197
198 __PACKAGE__->belongs_to(
199   "biblionumber",
200   "Koha::Schema::Result::Biblio",
201   { biblionumber => "biblionumber" },
202   { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
203 );
204
205 =head2 itemnumber
206
207 Type: belongs_to
208
209 Related object: L<Koha::Schema::Result::Item>
210
211 =cut
212
213 __PACKAGE__->belongs_to(
214   "itemnumber",
215   "Koha::Schema::Result::Item",
216   { itemnumber => "itemnumber" },
217   { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
218 );
219
220
221 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
222 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1b1FcIuOJ5ZRU2apc6swkQ
223
224
225 # You can replace this text with custom content, and it will be preserved on regeneration
226 1;