Bug 7413: update DBIC schema classes
[koha.git] / Koha / Schema / Result / BorrowerModification.pm
1 use utf8;
2 package Koha::Schema::Result::BorrowerModification;
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::BorrowerModification
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<borrower_modifications>
19
20 =cut
21
22 __PACKAGE__->table("borrower_modifications");
23
24 =head1 ACCESSORS
25
26 =head2 timestamp
27
28   data_type: 'timestamp'
29   datetime_undef_if_invalid: 1
30   default_value: current_timestamp
31   is_nullable: 0
32
33 =head2 verification_token
34
35   data_type: 'varchar'
36   default_value: (empty string)
37   is_nullable: 0
38   size: 255
39
40 =head2 borrowernumber
41
42   data_type: 'integer'
43   default_value: 0
44   is_nullable: 0
45
46 =head2 cardnumber
47
48   data_type: 'varchar'
49   is_nullable: 1
50   size: 16
51
52 =head2 surname
53
54   data_type: 'mediumtext'
55   is_nullable: 1
56
57 =head2 firstname
58
59   data_type: 'text'
60   is_nullable: 1
61
62 =head2 title
63
64   data_type: 'mediumtext'
65   is_nullable: 1
66
67 =head2 othernames
68
69   data_type: 'mediumtext'
70   is_nullable: 1
71
72 =head2 initials
73
74   data_type: 'text'
75   is_nullable: 1
76
77 =head2 streetnumber
78
79   data_type: 'varchar'
80   is_nullable: 1
81   size: 10
82
83 =head2 streettype
84
85   data_type: 'varchar'
86   is_nullable: 1
87   size: 50
88
89 =head2 address
90
91   data_type: 'mediumtext'
92   is_nullable: 1
93
94 =head2 address2
95
96   data_type: 'text'
97   is_nullable: 1
98
99 =head2 city
100
101   data_type: 'mediumtext'
102   is_nullable: 1
103
104 =head2 state
105
106   data_type: 'text'
107   is_nullable: 1
108
109 =head2 zipcode
110
111   data_type: 'varchar'
112   is_nullable: 1
113   size: 25
114
115 =head2 country
116
117   data_type: 'text'
118   is_nullable: 1
119
120 =head2 email
121
122   data_type: 'mediumtext'
123   is_nullable: 1
124
125 =head2 phone
126
127   data_type: 'text'
128   is_nullable: 1
129
130 =head2 mobile
131
132   data_type: 'varchar'
133   is_nullable: 1
134   size: 50
135
136 =head2 fax
137
138   data_type: 'mediumtext'
139   is_nullable: 1
140
141 =head2 emailpro
142
143   data_type: 'text'
144   is_nullable: 1
145
146 =head2 phonepro
147
148   data_type: 'text'
149   is_nullable: 1
150
151 =head2 b_streetnumber
152
153   data_type: 'varchar'
154   is_nullable: 1
155   size: 10
156
157 =head2 b_streettype
158
159   data_type: 'varchar'
160   is_nullable: 1
161   size: 50
162
163 =head2 b_address
164
165   data_type: 'varchar'
166   is_nullable: 1
167   size: 100
168
169 =head2 b_address2
170
171   data_type: 'text'
172   is_nullable: 1
173
174 =head2 b_city
175
176   data_type: 'mediumtext'
177   is_nullable: 1
178
179 =head2 b_state
180
181   data_type: 'text'
182   is_nullable: 1
183
184 =head2 b_zipcode
185
186   data_type: 'varchar'
187   is_nullable: 1
188   size: 25
189
190 =head2 b_country
191
192   data_type: 'text'
193   is_nullable: 1
194
195 =head2 b_email
196
197   data_type: 'text'
198   is_nullable: 1
199
200 =head2 b_phone
201
202   data_type: 'mediumtext'
203   is_nullable: 1
204
205 =head2 dateofbirth
206
207   data_type: 'date'
208   datetime_undef_if_invalid: 1
209   is_nullable: 1
210
211 =head2 branchcode
212
213   data_type: 'varchar'
214   is_nullable: 1
215   size: 10
216
217 =head2 categorycode
218
219   data_type: 'varchar'
220   is_nullable: 1
221   size: 10
222
223 =head2 dateenrolled
224
225   data_type: 'date'
226   datetime_undef_if_invalid: 1
227   is_nullable: 1
228
229 =head2 dateexpiry
230
231   data_type: 'date'
232   datetime_undef_if_invalid: 1
233   is_nullable: 1
234
235 =head2 gonenoaddress
236
237   data_type: 'tinyint'
238   is_nullable: 1
239
240 =head2 lost
241
242   data_type: 'tinyint'
243   is_nullable: 1
244
245 =head2 debarred
246
247   data_type: 'date'
248   datetime_undef_if_invalid: 1
249   is_nullable: 1
250
251 =head2 debarredcomment
252
253   data_type: 'varchar'
254   is_nullable: 1
255   size: 255
256
257 =head2 contactname
258
259   data_type: 'mediumtext'
260   is_nullable: 1
261
262 =head2 contactfirstname
263
264   data_type: 'text'
265   is_nullable: 1
266
267 =head2 contacttitle
268
269   data_type: 'text'
270   is_nullable: 1
271
272 =head2 guarantorid
273
274   data_type: 'integer'
275   is_nullable: 1
276
277 =head2 borrowernotes
278
279   data_type: 'mediumtext'
280   is_nullable: 1
281
282 =head2 relationship
283
284   data_type: 'varchar'
285   is_nullable: 1
286   size: 100
287
288 =head2 ethnicity
289
290   data_type: 'varchar'
291   is_nullable: 1
292   size: 50
293
294 =head2 ethnotes
295
296   data_type: 'varchar'
297   is_nullable: 1
298   size: 255
299
300 =head2 sex
301
302   data_type: 'varchar'
303   is_nullable: 1
304   size: 1
305
306 =head2 password
307
308   data_type: 'varchar'
309   is_nullable: 1
310   size: 30
311
312 =head2 flags
313
314   data_type: 'integer'
315   is_nullable: 1
316
317 =head2 userid
318
319   data_type: 'varchar'
320   is_nullable: 1
321   size: 75
322
323 =head2 opacnote
324
325   data_type: 'mediumtext'
326   is_nullable: 1
327
328 =head2 contactnote
329
330   data_type: 'varchar'
331   is_nullable: 1
332   size: 255
333
334 =head2 sort1
335
336   data_type: 'varchar'
337   is_nullable: 1
338   size: 80
339
340 =head2 sort2
341
342   data_type: 'varchar'
343   is_nullable: 1
344   size: 80
345
346 =head2 altcontactfirstname
347
348   data_type: 'varchar'
349   is_nullable: 1
350   size: 255
351
352 =head2 altcontactsurname
353
354   data_type: 'varchar'
355   is_nullable: 1
356   size: 255
357
358 =head2 altcontactaddress1
359
360   data_type: 'varchar'
361   is_nullable: 1
362   size: 255
363
364 =head2 altcontactaddress2
365
366   data_type: 'varchar'
367   is_nullable: 1
368   size: 255
369
370 =head2 altcontactaddress3
371
372   data_type: 'varchar'
373   is_nullable: 1
374   size: 255
375
376 =head2 altcontactstate
377
378   data_type: 'text'
379   is_nullable: 1
380
381 =head2 altcontactzipcode
382
383   data_type: 'varchar'
384   is_nullable: 1
385   size: 50
386
387 =head2 altcontactcountry
388
389   data_type: 'text'
390   is_nullable: 1
391
392 =head2 altcontactphone
393
394   data_type: 'varchar'
395   is_nullable: 1
396   size: 50
397
398 =head2 smsalertnumber
399
400   data_type: 'varchar'
401   is_nullable: 1
402   size: 50
403
404 =head2 privacy
405
406   data_type: 'integer'
407   is_nullable: 1
408
409 =cut
410
411 __PACKAGE__->add_columns(
412   "timestamp",
413   {
414     data_type => "timestamp",
415     datetime_undef_if_invalid => 1,
416     default_value => \"current_timestamp",
417     is_nullable => 0,
418   },
419   "verification_token",
420   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
421   "borrowernumber",
422   { data_type => "integer", default_value => 0, is_nullable => 0 },
423   "cardnumber",
424   { data_type => "varchar", is_nullable => 1, size => 16 },
425   "surname",
426   { data_type => "mediumtext", is_nullable => 1 },
427   "firstname",
428   { data_type => "text", is_nullable => 1 },
429   "title",
430   { data_type => "mediumtext", is_nullable => 1 },
431   "othernames",
432   { data_type => "mediumtext", is_nullable => 1 },
433   "initials",
434   { data_type => "text", is_nullable => 1 },
435   "streetnumber",
436   { data_type => "varchar", is_nullable => 1, size => 10 },
437   "streettype",
438   { data_type => "varchar", is_nullable => 1, size => 50 },
439   "address",
440   { data_type => "mediumtext", is_nullable => 1 },
441   "address2",
442   { data_type => "text", is_nullable => 1 },
443   "city",
444   { data_type => "mediumtext", is_nullable => 1 },
445   "state",
446   { data_type => "text", is_nullable => 1 },
447   "zipcode",
448   { data_type => "varchar", is_nullable => 1, size => 25 },
449   "country",
450   { data_type => "text", is_nullable => 1 },
451   "email",
452   { data_type => "mediumtext", is_nullable => 1 },
453   "phone",
454   { data_type => "text", is_nullable => 1 },
455   "mobile",
456   { data_type => "varchar", is_nullable => 1, size => 50 },
457   "fax",
458   { data_type => "mediumtext", is_nullable => 1 },
459   "emailpro",
460   { data_type => "text", is_nullable => 1 },
461   "phonepro",
462   { data_type => "text", is_nullable => 1 },
463   "b_streetnumber",
464   { data_type => "varchar", is_nullable => 1, size => 10 },
465   "b_streettype",
466   { data_type => "varchar", is_nullable => 1, size => 50 },
467   "b_address",
468   { data_type => "varchar", is_nullable => 1, size => 100 },
469   "b_address2",
470   { data_type => "text", is_nullable => 1 },
471   "b_city",
472   { data_type => "mediumtext", is_nullable => 1 },
473   "b_state",
474   { data_type => "text", is_nullable => 1 },
475   "b_zipcode",
476   { data_type => "varchar", is_nullable => 1, size => 25 },
477   "b_country",
478   { data_type => "text", is_nullable => 1 },
479   "b_email",
480   { data_type => "text", is_nullable => 1 },
481   "b_phone",
482   { data_type => "mediumtext", is_nullable => 1 },
483   "dateofbirth",
484   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
485   "branchcode",
486   { data_type => "varchar", is_nullable => 1, size => 10 },
487   "categorycode",
488   { data_type => "varchar", is_nullable => 1, size => 10 },
489   "dateenrolled",
490   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
491   "dateexpiry",
492   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
493   "gonenoaddress",
494   { data_type => "tinyint", is_nullable => 1 },
495   "lost",
496   { data_type => "tinyint", is_nullable => 1 },
497   "debarred",
498   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
499   "debarredcomment",
500   { data_type => "varchar", is_nullable => 1, size => 255 },
501   "contactname",
502   { data_type => "mediumtext", is_nullable => 1 },
503   "contactfirstname",
504   { data_type => "text", is_nullable => 1 },
505   "contacttitle",
506   { data_type => "text", is_nullable => 1 },
507   "guarantorid",
508   { data_type => "integer", is_nullable => 1 },
509   "borrowernotes",
510   { data_type => "mediumtext", is_nullable => 1 },
511   "relationship",
512   { data_type => "varchar", is_nullable => 1, size => 100 },
513   "ethnicity",
514   { data_type => "varchar", is_nullable => 1, size => 50 },
515   "ethnotes",
516   { data_type => "varchar", is_nullable => 1, size => 255 },
517   "sex",
518   { data_type => "varchar", is_nullable => 1, size => 1 },
519   "password",
520   { data_type => "varchar", is_nullable => 1, size => 30 },
521   "flags",
522   { data_type => "integer", is_nullable => 1 },
523   "userid",
524   { data_type => "varchar", is_nullable => 1, size => 75 },
525   "opacnote",
526   { data_type => "mediumtext", is_nullable => 1 },
527   "contactnote",
528   { data_type => "varchar", is_nullable => 1, size => 255 },
529   "sort1",
530   { data_type => "varchar", is_nullable => 1, size => 80 },
531   "sort2",
532   { data_type => "varchar", is_nullable => 1, size => 80 },
533   "altcontactfirstname",
534   { data_type => "varchar", is_nullable => 1, size => 255 },
535   "altcontactsurname",
536   { data_type => "varchar", is_nullable => 1, size => 255 },
537   "altcontactaddress1",
538   { data_type => "varchar", is_nullable => 1, size => 255 },
539   "altcontactaddress2",
540   { data_type => "varchar", is_nullable => 1, size => 255 },
541   "altcontactaddress3",
542   { data_type => "varchar", is_nullable => 1, size => 255 },
543   "altcontactstate",
544   { data_type => "text", is_nullable => 1 },
545   "altcontactzipcode",
546   { data_type => "varchar", is_nullable => 1, size => 50 },
547   "altcontactcountry",
548   { data_type => "text", is_nullable => 1 },
549   "altcontactphone",
550   { data_type => "varchar", is_nullable => 1, size => 50 },
551   "smsalertnumber",
552   { data_type => "varchar", is_nullable => 1, size => 50 },
553   "privacy",
554   { data_type => "integer", is_nullable => 1 },
555 );
556
557 =head1 PRIMARY KEY
558
559 =over 4
560
561 =item * L</verification_token>
562
563 =item * L</borrowernumber>
564
565 =back
566
567 =cut
568
569 __PACKAGE__->set_primary_key("verification_token", "borrowernumber");
570
571
572 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
573 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:11X5o3u4/EqPRVbQdtAuOA
574
575
576 # You can replace this text with custom content, and it will be preserved on regeneration
577 1;