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