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