Bug 11391: (follow-up) update DBIC schema classes
[koha.git] / Koha / Schema / Result / Suggestion.pm
1 use utf8;
2 package Koha::Schema::Result::Suggestion;
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::Suggestion
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<suggestions>
19
20 =cut
21
22 __PACKAGE__->table("suggestions");
23
24 =head1 ACCESSORS
25
26 =head2 suggestionid
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 suggestedby
33
34   data_type: 'integer'
35   default_value: 0
36   is_nullable: 0
37
38 =head2 suggesteddate
39
40   data_type: 'date'
41   datetime_undef_if_invalid: 1
42   is_nullable: 0
43
44 =head2 managedby
45
46   data_type: 'integer'
47   is_nullable: 1
48
49 =head2 manageddate
50
51   data_type: 'date'
52   datetime_undef_if_invalid: 1
53   is_nullable: 1
54
55 =head2 acceptedby
56
57   data_type: 'integer'
58   is_nullable: 1
59
60 =head2 accepteddate
61
62   data_type: 'date'
63   datetime_undef_if_invalid: 1
64   is_nullable: 1
65
66 =head2 rejectedby
67
68   data_type: 'integer'
69   is_nullable: 1
70
71 =head2 rejecteddate
72
73   data_type: 'date'
74   datetime_undef_if_invalid: 1
75   is_nullable: 1
76
77 =head2 status
78
79   data_type: 'varchar'
80   default_value: (empty string)
81   is_nullable: 0
82   size: 10
83
84 =head2 note
85
86   data_type: 'mediumtext'
87   is_nullable: 1
88
89 =head2 author
90
91   data_type: 'varchar'
92   is_nullable: 1
93   size: 80
94
95 =head2 title
96
97   data_type: 'varchar'
98   is_nullable: 1
99   size: 255
100
101 =head2 copyrightdate
102
103   data_type: 'smallint'
104   is_nullable: 1
105
106 =head2 publishercode
107
108   data_type: 'varchar'
109   is_nullable: 1
110   size: 255
111
112 =head2 date
113
114   data_type: 'timestamp'
115   datetime_undef_if_invalid: 1
116   default_value: current_timestamp
117   is_nullable: 0
118
119 =head2 volumedesc
120
121   data_type: 'varchar'
122   is_nullable: 1
123   size: 255
124
125 =head2 publicationyear
126
127   data_type: 'smallint'
128   default_value: 0
129   is_nullable: 1
130
131 =head2 place
132
133   data_type: 'varchar'
134   is_nullable: 1
135   size: 255
136
137 =head2 isbn
138
139   data_type: 'varchar'
140   is_nullable: 1
141   size: 30
142
143 =head2 mailoverseeing
144
145   data_type: 'smallint'
146   default_value: 0
147   is_nullable: 1
148
149 =head2 biblionumber
150
151   data_type: 'integer'
152   is_nullable: 1
153
154 =head2 reason
155
156   data_type: 'text'
157   is_nullable: 1
158
159 =head2 patronreason
160
161   data_type: 'text'
162   is_nullable: 1
163
164 =head2 budgetid
165
166   data_type: 'integer'
167   is_nullable: 1
168
169 =head2 branchcode
170
171   data_type: 'varchar'
172   is_nullable: 1
173   size: 10
174
175 =head2 collectiontitle
176
177   data_type: 'text'
178   is_nullable: 1
179
180 =head2 itemtype
181
182   data_type: 'varchar'
183   is_nullable: 1
184   size: 30
185
186 =head2 quantity
187
188   data_type: 'smallint'
189   is_nullable: 1
190
191 =head2 currency
192
193   data_type: 'varchar'
194   is_nullable: 1
195   size: 3
196
197 =head2 price
198
199   data_type: 'decimal'
200   is_nullable: 1
201   size: [28,6]
202
203 =head2 total
204
205   data_type: 'decimal'
206   is_nullable: 1
207   size: [28,6]
208
209 =cut
210
211 __PACKAGE__->add_columns(
212   "suggestionid",
213   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
214   "suggestedby",
215   { data_type => "integer", default_value => 0, is_nullable => 0 },
216   "suggesteddate",
217   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
218   "managedby",
219   { data_type => "integer", is_nullable => 1 },
220   "manageddate",
221   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
222   "acceptedby",
223   { data_type => "integer", is_nullable => 1 },
224   "accepteddate",
225   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
226   "rejectedby",
227   { data_type => "integer", is_nullable => 1 },
228   "rejecteddate",
229   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
230   "status",
231   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
232   "note",
233   { data_type => "mediumtext", is_nullable => 1 },
234   "author",
235   { data_type => "varchar", is_nullable => 1, size => 80 },
236   "title",
237   { data_type => "varchar", is_nullable => 1, size => 255 },
238   "copyrightdate",
239   { data_type => "smallint", is_nullable => 1 },
240   "publishercode",
241   { data_type => "varchar", is_nullable => 1, size => 255 },
242   "date",
243   {
244     data_type => "timestamp",
245     datetime_undef_if_invalid => 1,
246     default_value => \"current_timestamp",
247     is_nullable => 0,
248   },
249   "volumedesc",
250   { data_type => "varchar", is_nullable => 1, size => 255 },
251   "publicationyear",
252   { data_type => "smallint", default_value => 0, is_nullable => 1 },
253   "place",
254   { data_type => "varchar", is_nullable => 1, size => 255 },
255   "isbn",
256   { data_type => "varchar", is_nullable => 1, size => 30 },
257   "mailoverseeing",
258   { data_type => "smallint", default_value => 0, is_nullable => 1 },
259   "biblionumber",
260   { data_type => "integer", is_nullable => 1 },
261   "reason",
262   { data_type => "text", is_nullable => 1 },
263   "patronreason",
264   { data_type => "text", is_nullable => 1 },
265   "budgetid",
266   { data_type => "integer", is_nullable => 1 },
267   "branchcode",
268   { data_type => "varchar", is_nullable => 1, size => 10 },
269   "collectiontitle",
270   { data_type => "text", is_nullable => 1 },
271   "itemtype",
272   { data_type => "varchar", is_nullable => 1, size => 30 },
273   "quantity",
274   { data_type => "smallint", is_nullable => 1 },
275   "currency",
276   { data_type => "varchar", is_nullable => 1, size => 3 },
277   "price",
278   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
279   "total",
280   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
281 );
282
283 =head1 PRIMARY KEY
284
285 =over 4
286
287 =item * L</suggestionid>
288
289 =back
290
291 =cut
292
293 __PACKAGE__->set_primary_key("suggestionid");
294
295
296 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-12-13 01:10:43
297 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LJoqZVAeoZ0ra2BKxXRQMQ
298
299
300 # You can replace this text with custom content, and it will be preserved on regeneration
301 1;