Bug 12781: DBIx::Class schema update 08/2014
[koha-equinox.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 ethnicity
299
300   data_type: 'varchar'
301   is_nullable: 1
302   size: 50
303
304 =head2 ethnotes
305
306   data_type: 'varchar'
307   is_nullable: 1
308   size: 255
309
310 =head2 sex
311
312   data_type: 'varchar'
313   is_nullable: 1
314   size: 1
315
316 =head2 password
317
318   data_type: 'varchar'
319   is_nullable: 1
320   size: 30
321
322 =head2 flags
323
324   data_type: 'integer'
325   is_nullable: 1
326
327 =head2 userid
328
329   data_type: 'varchar'
330   is_nullable: 1
331   size: 75
332
333 =head2 opacnote
334
335   data_type: 'mediumtext'
336   is_nullable: 1
337
338 =head2 contactnote
339
340   data_type: 'varchar'
341   is_nullable: 1
342   size: 255
343
344 =head2 sort1
345
346   data_type: 'varchar'
347   is_nullable: 1
348   size: 80
349
350 =head2 sort2
351
352   data_type: 'varchar'
353   is_nullable: 1
354   size: 80
355
356 =head2 altcontactfirstname
357
358   data_type: 'varchar'
359   is_nullable: 1
360   size: 255
361
362 =head2 altcontactsurname
363
364   data_type: 'varchar'
365   is_nullable: 1
366   size: 255
367
368 =head2 altcontactaddress1
369
370   data_type: 'varchar'
371   is_nullable: 1
372   size: 255
373
374 =head2 altcontactaddress2
375
376   data_type: 'varchar'
377   is_nullable: 1
378   size: 255
379
380 =head2 altcontactaddress3
381
382   data_type: 'varchar'
383   is_nullable: 1
384   size: 255
385
386 =head2 altcontactstate
387
388   data_type: 'text'
389   is_nullable: 1
390
391 =head2 altcontactzipcode
392
393   data_type: 'varchar'
394   is_nullable: 1
395   size: 50
396
397 =head2 altcontactcountry
398
399   data_type: 'text'
400   is_nullable: 1
401
402 =head2 altcontactphone
403
404   data_type: 'varchar'
405   is_nullable: 1
406   size: 50
407
408 =head2 smsalertnumber
409
410   data_type: 'varchar'
411   is_nullable: 1
412   size: 50
413
414 =head2 privacy
415
416   data_type: 'integer'
417   is_nullable: 1
418
419 =cut
420
421 __PACKAGE__->add_columns(
422   "timestamp",
423   {
424     data_type => "timestamp",
425     datetime_undef_if_invalid => 1,
426     default_value => \"current_timestamp",
427     is_nullable => 0,
428   },
429   "verification_token",
430   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
431   "borrowernumber",
432   { data_type => "integer", default_value => 0, is_nullable => 0 },
433   "cardnumber",
434   { data_type => "varchar", is_nullable => 1, size => 16 },
435   "surname",
436   { data_type => "mediumtext", is_nullable => 1 },
437   "firstname",
438   { data_type => "text", is_nullable => 1 },
439   "title",
440   { data_type => "mediumtext", is_nullable => 1 },
441   "othernames",
442   { data_type => "mediumtext", is_nullable => 1 },
443   "initials",
444   { data_type => "text", is_nullable => 1 },
445   "streetnumber",
446   { data_type => "varchar", is_nullable => 1, size => 10 },
447   "streettype",
448   { data_type => "varchar", is_nullable => 1, size => 50 },
449   "address",
450   { data_type => "mediumtext", is_nullable => 1 },
451   "address2",
452   { data_type => "text", is_nullable => 1 },
453   "city",
454   { data_type => "mediumtext", is_nullable => 1 },
455   "state",
456   { data_type => "text", is_nullable => 1 },
457   "zipcode",
458   { data_type => "varchar", is_nullable => 1, size => 25 },
459   "country",
460   { data_type => "text", is_nullable => 1 },
461   "email",
462   { data_type => "mediumtext", is_nullable => 1 },
463   "phone",
464   { data_type => "text", is_nullable => 1 },
465   "mobile",
466   { data_type => "varchar", is_nullable => 1, size => 50 },
467   "fax",
468   { data_type => "mediumtext", is_nullable => 1 },
469   "emailpro",
470   { data_type => "text", is_nullable => 1 },
471   "phonepro",
472   { data_type => "text", is_nullable => 1 },
473   "B_streetnumber",
474   {
475     accessor => "b_streetnumber",
476     data_type => "varchar",
477     is_nullable => 1,
478     size => 10,
479   },
480   "B_streettype",
481   {
482     accessor => "b_streettype",
483     data_type => "varchar",
484     is_nullable => 1,
485     size => 50,
486   },
487   "B_address",
488   {
489     accessor => "b_address",
490     data_type => "varchar",
491     is_nullable => 1,
492     size => 100,
493   },
494   "B_address2",
495   { accessor => "b_address2", data_type => "text", is_nullable => 1 },
496   "B_city",
497   { accessor => "b_city", data_type => "mediumtext", is_nullable => 1 },
498   "B_state",
499   { accessor => "b_state", data_type => "text", is_nullable => 1 },
500   "B_zipcode",
501   {
502     accessor => "b_zipcode",
503     data_type => "varchar",
504     is_nullable => 1,
505     size => 25,
506   },
507   "B_country",
508   { accessor => "b_country", data_type => "text", is_nullable => 1 },
509   "B_email",
510   { accessor => "b_email", data_type => "text", is_nullable => 1 },
511   "B_phone",
512   { accessor => "b_phone", data_type => "mediumtext", is_nullable => 1 },
513   "dateofbirth",
514   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
515   "branchcode",
516   { data_type => "varchar", is_nullable => 1, size => 10 },
517   "categorycode",
518   { data_type => "varchar", is_nullable => 1, size => 10 },
519   "dateenrolled",
520   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
521   "dateexpiry",
522   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
523   "gonenoaddress",
524   { data_type => "tinyint", is_nullable => 1 },
525   "lost",
526   { data_type => "tinyint", is_nullable => 1 },
527   "debarred",
528   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
529   "debarredcomment",
530   { data_type => "varchar", is_nullable => 1, size => 255 },
531   "contactname",
532   { data_type => "mediumtext", is_nullable => 1 },
533   "contactfirstname",
534   { data_type => "text", is_nullable => 1 },
535   "contacttitle",
536   { data_type => "text", is_nullable => 1 },
537   "guarantorid",
538   { data_type => "integer", is_nullable => 1 },
539   "borrowernotes",
540   { data_type => "mediumtext", is_nullable => 1 },
541   "relationship",
542   { data_type => "varchar", is_nullable => 1, size => 100 },
543   "ethnicity",
544   { data_type => "varchar", is_nullable => 1, size => 50 },
545   "ethnotes",
546   { data_type => "varchar", is_nullable => 1, size => 255 },
547   "sex",
548   { data_type => "varchar", is_nullable => 1, size => 1 },
549   "password",
550   { data_type => "varchar", is_nullable => 1, size => 30 },
551   "flags",
552   { data_type => "integer", is_nullable => 1 },
553   "userid",
554   { data_type => "varchar", is_nullable => 1, size => 75 },
555   "opacnote",
556   { data_type => "mediumtext", is_nullable => 1 },
557   "contactnote",
558   { data_type => "varchar", is_nullable => 1, size => 255 },
559   "sort1",
560   { data_type => "varchar", is_nullable => 1, size => 80 },
561   "sort2",
562   { data_type => "varchar", is_nullable => 1, size => 80 },
563   "altcontactfirstname",
564   { data_type => "varchar", is_nullable => 1, size => 255 },
565   "altcontactsurname",
566   { data_type => "varchar", is_nullable => 1, size => 255 },
567   "altcontactaddress1",
568   { data_type => "varchar", is_nullable => 1, size => 255 },
569   "altcontactaddress2",
570   { data_type => "varchar", is_nullable => 1, size => 255 },
571   "altcontactaddress3",
572   { data_type => "varchar", is_nullable => 1, size => 255 },
573   "altcontactstate",
574   { data_type => "text", is_nullable => 1 },
575   "altcontactzipcode",
576   { data_type => "varchar", is_nullable => 1, size => 50 },
577   "altcontactcountry",
578   { data_type => "text", is_nullable => 1 },
579   "altcontactphone",
580   { data_type => "varchar", is_nullable => 1, size => 50 },
581   "smsalertnumber",
582   { data_type => "varchar", is_nullable => 1, size => 50 },
583   "privacy",
584   { data_type => "integer", is_nullable => 1 },
585 );
586
587 =head1 PRIMARY KEY
588
589 =over 4
590
591 =item * L</verification_token>
592
593 =item * L</borrowernumber>
594
595 =back
596
597 =cut
598
599 __PACKAGE__->set_primary_key("verification_token", "borrowernumber");
600
601
602 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-18 13:01:05
603 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xUfsaCL/IR4h5U7AKHmFzw
604
605
606 # You can replace this text with custom content, and it will be preserved on regeneration
607 1;