Bug 17767: DBIC update
[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   accessor: 'b_streetnumber'
154   data_type: 'varchar'
155   is_nullable: 1
156   size: 10
157
158 =head2 B_streettype
159
160   accessor: 'b_streettype'
161   data_type: 'varchar'
162   is_nullable: 1
163   size: 50
164
165 =head2 B_address
166
167   accessor: 'b_address'
168   data_type: 'varchar'
169   is_nullable: 1
170   size: 100
171
172 =head2 B_address2
173
174   accessor: 'b_address2'
175   data_type: 'text'
176   is_nullable: 1
177
178 =head2 B_city
179
180   accessor: 'b_city'
181   data_type: 'mediumtext'
182   is_nullable: 1
183
184 =head2 B_state
185
186   accessor: 'b_state'
187   data_type: 'text'
188   is_nullable: 1
189
190 =head2 B_zipcode
191
192   accessor: 'b_zipcode'
193   data_type: 'varchar'
194   is_nullable: 1
195   size: 25
196
197 =head2 B_country
198
199   accessor: 'b_country'
200   data_type: 'text'
201   is_nullable: 1
202
203 =head2 B_email
204
205   accessor: 'b_email'
206   data_type: 'text'
207   is_nullable: 1
208
209 =head2 B_phone
210
211   accessor: 'b_phone'
212   data_type: 'mediumtext'
213   is_nullable: 1
214
215 =head2 dateofbirth
216
217   data_type: 'date'
218   datetime_undef_if_invalid: 1
219   is_nullable: 1
220
221 =head2 branchcode
222
223   data_type: 'varchar'
224   is_nullable: 1
225   size: 10
226
227 =head2 categorycode
228
229   data_type: 'varchar'
230   is_nullable: 1
231   size: 10
232
233 =head2 dateenrolled
234
235   data_type: 'date'
236   datetime_undef_if_invalid: 1
237   is_nullable: 1
238
239 =head2 dateexpiry
240
241   data_type: 'date'
242   datetime_undef_if_invalid: 1
243   is_nullable: 1
244
245 =head2 gonenoaddress
246
247   data_type: 'tinyint'
248   is_nullable: 1
249
250 =head2 lost
251
252   data_type: 'tinyint'
253   is_nullable: 1
254
255 =head2 debarred
256
257   data_type: 'date'
258   datetime_undef_if_invalid: 1
259   is_nullable: 1
260
261 =head2 debarredcomment
262
263   data_type: 'varchar'
264   is_nullable: 1
265   size: 255
266
267 =head2 contactname
268
269   data_type: 'mediumtext'
270   is_nullable: 1
271
272 =head2 contactfirstname
273
274   data_type: 'text'
275   is_nullable: 1
276
277 =head2 contacttitle
278
279   data_type: 'text'
280   is_nullable: 1
281
282 =head2 guarantorid
283
284   data_type: 'integer'
285   is_nullable: 1
286
287 =head2 borrowernotes
288
289   data_type: 'mediumtext'
290   is_nullable: 1
291
292 =head2 relationship
293
294   data_type: 'varchar'
295   is_nullable: 1
296   size: 100
297
298 =head2 sex
299
300   data_type: 'varchar'
301   is_nullable: 1
302   size: 1
303
304 =head2 password
305
306   data_type: 'varchar'
307   is_nullable: 1
308   size: 30
309
310 =head2 flags
311
312   data_type: 'integer'
313   is_nullable: 1
314
315 =head2 userid
316
317   data_type: 'varchar'
318   is_nullable: 1
319   size: 75
320
321 =head2 opacnote
322
323   data_type: 'mediumtext'
324   is_nullable: 1
325
326 =head2 contactnote
327
328   data_type: 'varchar'
329   is_nullable: 1
330   size: 255
331
332 =head2 sort1
333
334   data_type: 'varchar'
335   is_nullable: 1
336   size: 80
337
338 =head2 sort2
339
340   data_type: 'varchar'
341   is_nullable: 1
342   size: 80
343
344 =head2 altcontactfirstname
345
346   data_type: 'varchar'
347   is_nullable: 1
348   size: 255
349
350 =head2 altcontactsurname
351
352   data_type: 'varchar'
353   is_nullable: 1
354   size: 255
355
356 =head2 altcontactaddress1
357
358   data_type: 'varchar'
359   is_nullable: 1
360   size: 255
361
362 =head2 altcontactaddress2
363
364   data_type: 'varchar'
365   is_nullable: 1
366   size: 255
367
368 =head2 altcontactaddress3
369
370   data_type: 'varchar'
371   is_nullable: 1
372   size: 255
373
374 =head2 altcontactstate
375
376   data_type: 'text'
377   is_nullable: 1
378
379 =head2 altcontactzipcode
380
381   data_type: 'varchar'
382   is_nullable: 1
383   size: 50
384
385 =head2 altcontactcountry
386
387   data_type: 'text'
388   is_nullable: 1
389
390 =head2 altcontactphone
391
392   data_type: 'varchar'
393   is_nullable: 1
394   size: 50
395
396 =head2 smsalertnumber
397
398   data_type: 'varchar'
399   is_nullable: 1
400   size: 50
401
402 =head2 privacy
403
404   data_type: 'integer'
405   is_nullable: 1
406
407 =head2 extended_attributes
408
409   data_type: 'text'
410   is_nullable: 1
411
412 =cut
413
414 __PACKAGE__->add_columns(
415   "timestamp",
416   {
417     data_type => "timestamp",
418     datetime_undef_if_invalid => 1,
419     default_value => \"current_timestamp",
420     is_nullable => 0,
421   },
422   "verification_token",
423   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
424   "borrowernumber",
425   { data_type => "integer", default_value => 0, is_nullable => 0 },
426   "cardnumber",
427   { data_type => "varchar", is_nullable => 1, size => 16 },
428   "surname",
429   { data_type => "mediumtext", is_nullable => 1 },
430   "firstname",
431   { data_type => "text", is_nullable => 1 },
432   "title",
433   { data_type => "mediumtext", is_nullable => 1 },
434   "othernames",
435   { data_type => "mediumtext", is_nullable => 1 },
436   "initials",
437   { data_type => "text", is_nullable => 1 },
438   "streetnumber",
439   { data_type => "varchar", is_nullable => 1, size => 10 },
440   "streettype",
441   { data_type => "varchar", is_nullable => 1, size => 50 },
442   "address",
443   { data_type => "mediumtext", is_nullable => 1 },
444   "address2",
445   { data_type => "text", is_nullable => 1 },
446   "city",
447   { data_type => "mediumtext", is_nullable => 1 },
448   "state",
449   { data_type => "text", is_nullable => 1 },
450   "zipcode",
451   { data_type => "varchar", is_nullable => 1, size => 25 },
452   "country",
453   { data_type => "text", is_nullable => 1 },
454   "email",
455   { data_type => "mediumtext", is_nullable => 1 },
456   "phone",
457   { data_type => "text", is_nullable => 1 },
458   "mobile",
459   { data_type => "varchar", is_nullable => 1, size => 50 },
460   "fax",
461   { data_type => "mediumtext", is_nullable => 1 },
462   "emailpro",
463   { data_type => "text", is_nullable => 1 },
464   "phonepro",
465   { data_type => "text", is_nullable => 1 },
466   "B_streetnumber",
467   {
468     accessor => "b_streetnumber",
469     data_type => "varchar",
470     is_nullable => 1,
471     size => 10,
472   },
473   "B_streettype",
474   {
475     accessor => "b_streettype",
476     data_type => "varchar",
477     is_nullable => 1,
478     size => 50,
479   },
480   "B_address",
481   {
482     accessor => "b_address",
483     data_type => "varchar",
484     is_nullable => 1,
485     size => 100,
486   },
487   "B_address2",
488   { accessor => "b_address2", data_type => "text", is_nullable => 1 },
489   "B_city",
490   { accessor => "b_city", data_type => "mediumtext", is_nullable => 1 },
491   "B_state",
492   { accessor => "b_state", data_type => "text", is_nullable => 1 },
493   "B_zipcode",
494   {
495     accessor => "b_zipcode",
496     data_type => "varchar",
497     is_nullable => 1,
498     size => 25,
499   },
500   "B_country",
501   { accessor => "b_country", data_type => "text", is_nullable => 1 },
502   "B_email",
503   { accessor => "b_email", data_type => "text", is_nullable => 1 },
504   "B_phone",
505   { accessor => "b_phone", data_type => "mediumtext", is_nullable => 1 },
506   "dateofbirth",
507   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
508   "branchcode",
509   { data_type => "varchar", is_nullable => 1, size => 10 },
510   "categorycode",
511   { data_type => "varchar", is_nullable => 1, size => 10 },
512   "dateenrolled",
513   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
514   "dateexpiry",
515   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
516   "gonenoaddress",
517   { data_type => "tinyint", is_nullable => 1 },
518   "lost",
519   { data_type => "tinyint", is_nullable => 1 },
520   "debarred",
521   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
522   "debarredcomment",
523   { data_type => "varchar", is_nullable => 1, size => 255 },
524   "contactname",
525   { data_type => "mediumtext", is_nullable => 1 },
526   "contactfirstname",
527   { data_type => "text", is_nullable => 1 },
528   "contacttitle",
529   { data_type => "text", is_nullable => 1 },
530   "guarantorid",
531   { data_type => "integer", is_nullable => 1 },
532   "borrowernotes",
533   { data_type => "mediumtext", is_nullable => 1 },
534   "relationship",
535   { data_type => "varchar", is_nullable => 1, size => 100 },
536   "sex",
537   { data_type => "varchar", is_nullable => 1, size => 1 },
538   "password",
539   { data_type => "varchar", is_nullable => 1, size => 30 },
540   "flags",
541   { data_type => "integer", is_nullable => 1 },
542   "userid",
543   { data_type => "varchar", is_nullable => 1, size => 75 },
544   "opacnote",
545   { data_type => "mediumtext", is_nullable => 1 },
546   "contactnote",
547   { data_type => "varchar", is_nullable => 1, size => 255 },
548   "sort1",
549   { data_type => "varchar", is_nullable => 1, size => 80 },
550   "sort2",
551   { data_type => "varchar", is_nullable => 1, size => 80 },
552   "altcontactfirstname",
553   { data_type => "varchar", is_nullable => 1, size => 255 },
554   "altcontactsurname",
555   { data_type => "varchar", is_nullable => 1, size => 255 },
556   "altcontactaddress1",
557   { data_type => "varchar", is_nullable => 1, size => 255 },
558   "altcontactaddress2",
559   { data_type => "varchar", is_nullable => 1, size => 255 },
560   "altcontactaddress3",
561   { data_type => "varchar", is_nullable => 1, size => 255 },
562   "altcontactstate",
563   { data_type => "text", is_nullable => 1 },
564   "altcontactzipcode",
565   { data_type => "varchar", is_nullable => 1, size => 50 },
566   "altcontactcountry",
567   { data_type => "text", is_nullable => 1 },
568   "altcontactphone",
569   { data_type => "varchar", is_nullable => 1, size => 50 },
570   "smsalertnumber",
571   { data_type => "varchar", is_nullable => 1, size => 50 },
572   "privacy",
573   { data_type => "integer", is_nullable => 1 },
574   "extended_attributes",
575   { data_type => "text", is_nullable => 1 },
576 );
577
578 =head1 PRIMARY KEY
579
580 =over 4
581
582 =item * L</verification_token>
583
584 =item * L</borrowernumber>
585
586 =back
587
588 =cut
589
590 __PACKAGE__->set_primary_key("verification_token", "borrowernumber");
591
592
593 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-12-12 20:04:12
594 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IZNhBX5Bj+x4S8JCWG+7lA
595
596
597 # You can replace this text with custom content, and it will be preserved on regeneration
598 1;