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