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