Bug 21797: Update two-column templates with Bootstrap grid: Acquisitions part 5
[koha.git] / Koha / Schema / Result / Suggestion.pm
blobac08c1e5c13dbcfb94cd35836a0b34edfb127ba8
1 use utf8;
2 package Koha::Schema::Result::Suggestion;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Suggestion
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<suggestions>
20 =cut
22 __PACKAGE__->table("suggestions");
24 =head1 ACCESSORS
26 =head2 suggestionid
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 suggestedby
34 data_type: 'integer'
35 default_value: 0
36 is_nullable: 0
38 =head2 suggesteddate
40 data_type: 'date'
41 datetime_undef_if_invalid: 1
42 is_nullable: 0
44 =head2 managedby
46 data_type: 'integer'
47 is_nullable: 1
49 =head2 manageddate
51 data_type: 'date'
52 datetime_undef_if_invalid: 1
53 is_nullable: 1
55 =head2 acceptedby
57 data_type: 'integer'
58 is_nullable: 1
60 =head2 accepteddate
62 data_type: 'date'
63 datetime_undef_if_invalid: 1
64 is_nullable: 1
66 =head2 rejectedby
68 data_type: 'integer'
69 is_nullable: 1
71 =head2 rejecteddate
73 data_type: 'date'
74 datetime_undef_if_invalid: 1
75 is_nullable: 1
77 =head2 STATUS
79 accessor: 'status'
80 data_type: 'varchar'
81 default_value: (empty string)
82 is_nullable: 0
83 size: 10
85 =head2 note
87 data_type: 'longtext'
88 is_nullable: 1
90 =head2 author
92 data_type: 'varchar'
93 is_nullable: 1
94 size: 80
96 =head2 title
98 data_type: 'varchar'
99 is_nullable: 1
100 size: 255
102 =head2 copyrightdate
104 data_type: 'smallint'
105 is_nullable: 1
107 =head2 publishercode
109 data_type: 'varchar'
110 is_nullable: 1
111 size: 255
113 =head2 date
115 data_type: 'timestamp'
116 datetime_undef_if_invalid: 1
117 default_value: current_timestamp
118 is_nullable: 0
120 =head2 volumedesc
122 data_type: 'varchar'
123 is_nullable: 1
124 size: 255
126 =head2 publicationyear
128 data_type: 'smallint'
129 default_value: 0
130 is_nullable: 1
132 =head2 place
134 data_type: 'varchar'
135 is_nullable: 1
136 size: 255
138 =head2 isbn
140 data_type: 'varchar'
141 is_nullable: 1
142 size: 30
144 =head2 biblionumber
146 data_type: 'integer'
147 is_nullable: 1
149 =head2 reason
151 data_type: 'mediumtext'
152 is_nullable: 1
154 =head2 patronreason
156 data_type: 'mediumtext'
157 is_nullable: 1
159 =head2 budgetid
161 data_type: 'integer'
162 is_foreign_key: 1
163 is_nullable: 1
165 =head2 branchcode
167 data_type: 'varchar'
168 is_nullable: 1
169 size: 10
171 =head2 collectiontitle
173 data_type: 'mediumtext'
174 is_nullable: 1
176 =head2 itemtype
178 data_type: 'varchar'
179 is_nullable: 1
180 size: 30
182 =head2 quantity
184 data_type: 'smallint'
185 is_nullable: 1
187 =head2 currency
189 data_type: 'varchar'
190 is_nullable: 1
191 size: 10
193 =head2 price
195 data_type: 'decimal'
196 is_nullable: 1
197 size: [28,6]
199 =head2 total
201 data_type: 'decimal'
202 is_nullable: 1
203 size: [28,6]
205 =cut
207 __PACKAGE__->add_columns(
208 "suggestionid",
209 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
210 "suggestedby",
211 { data_type => "integer", default_value => 0, is_nullable => 0 },
212 "suggesteddate",
213 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
214 "managedby",
215 { data_type => "integer", is_nullable => 1 },
216 "manageddate",
217 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
218 "acceptedby",
219 { data_type => "integer", is_nullable => 1 },
220 "accepteddate",
221 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
222 "rejectedby",
223 { data_type => "integer", is_nullable => 1 },
224 "rejecteddate",
225 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
226 "STATUS",
228 accessor => "status",
229 data_type => "varchar",
230 default_value => "",
231 is_nullable => 0,
232 size => 10,
234 "note",
235 { data_type => "longtext", is_nullable => 1 },
236 "author",
237 { data_type => "varchar", is_nullable => 1, size => 80 },
238 "title",
239 { data_type => "varchar", is_nullable => 1, size => 255 },
240 "copyrightdate",
241 { data_type => "smallint", is_nullable => 1 },
242 "publishercode",
243 { data_type => "varchar", is_nullable => 1, size => 255 },
244 "date",
246 data_type => "timestamp",
247 datetime_undef_if_invalid => 1,
248 default_value => \"current_timestamp",
249 is_nullable => 0,
251 "volumedesc",
252 { data_type => "varchar", is_nullable => 1, size => 255 },
253 "publicationyear",
254 { data_type => "smallint", default_value => 0, is_nullable => 1 },
255 "place",
256 { data_type => "varchar", is_nullable => 1, size => 255 },
257 "isbn",
258 { data_type => "varchar", is_nullable => 1, size => 30 },
259 "biblionumber",
260 { data_type => "integer", is_nullable => 1 },
261 "reason",
262 { data_type => "mediumtext", is_nullable => 1 },
263 "patronreason",
264 { data_type => "mediumtext", is_nullable => 1 },
265 "budgetid",
266 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
267 "branchcode",
268 { data_type => "varchar", is_nullable => 1, size => 10 },
269 "collectiontitle",
270 { data_type => "mediumtext", 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 => 10 },
277 "price",
278 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
279 "total",
280 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
283 =head1 PRIMARY KEY
285 =over 4
287 =item * L</suggestionid>
289 =back
291 =cut
293 __PACKAGE__->set_primary_key("suggestionid");
295 =head1 RELATIONS
297 =head2 budgetid
299 Type: belongs_to
301 Related object: L<Koha::Schema::Result::Aqbudget>
303 =cut
305 __PACKAGE__->belongs_to(
306 "budgetid",
307 "Koha::Schema::Result::Aqbudget",
308 { budget_id => "budgetid" },
310 is_deferrable => 1,
311 join_type => "LEFT",
312 on_delete => "SET NULL",
313 on_update => "CASCADE",
318 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
319 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dOt4/U4rLcXq+aACRwcpYw
322 # You can replace this text with custom content, and it will be preserved on regeneration