Bug 23152: Implement koha_object[s]_class when needed
[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: 32
51
52 =head2 surname
53
54   data_type: 'longtext'
55   is_nullable: 1
56
57 =head2 firstname
58
59   data_type: 'mediumtext'
60   is_nullable: 1
61
62 =head2 title
63
64   data_type: 'longtext'
65   is_nullable: 1
66
67 =head2 othernames
68
69   data_type: 'longtext'
70   is_nullable: 1
71
72 =head2 initials
73
74   data_type: 'mediumtext'
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: 'longtext'
92   is_nullable: 1
93
94 =head2 address2
95
96   data_type: 'mediumtext'
97   is_nullable: 1
98
99 =head2 city
100
101   data_type: 'longtext'
102   is_nullable: 1
103
104 =head2 state
105
106   data_type: 'mediumtext'
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: 'mediumtext'
118   is_nullable: 1
119
120 =head2 email
121
122   data_type: 'longtext'
123   is_nullable: 1
124
125 =head2 phone
126
127   data_type: 'mediumtext'
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: 'longtext'
139   is_nullable: 1
140
141 =head2 emailpro
142
143   data_type: 'mediumtext'
144   is_nullable: 1
145
146 =head2 phonepro
147
148   data_type: 'mediumtext'
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: 'mediumtext'
176   is_nullable: 1
177
178 =head2 B_city
179
180   accessor: 'b_city'
181   data_type: 'longtext'
182   is_nullable: 1
183
184 =head2 B_state
185
186   accessor: 'b_state'
187   data_type: 'mediumtext'
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: 'mediumtext'
201   is_nullable: 1
202
203 =head2 B_email
204
205   accessor: 'b_email'
206   data_type: 'mediumtext'
207   is_nullable: 1
208
209 =head2 B_phone
210
211   accessor: 'b_phone'
212   data_type: 'longtext'
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 date_renewed
246
247   data_type: 'date'
248   datetime_undef_if_invalid: 1
249   is_nullable: 1
250
251 =head2 gonenoaddress
252
253   data_type: 'tinyint'
254   is_nullable: 1
255
256 =head2 lost
257
258   data_type: 'tinyint'
259   is_nullable: 1
260
261 =head2 debarred
262
263   data_type: 'date'
264   datetime_undef_if_invalid: 1
265   is_nullable: 1
266
267 =head2 debarredcomment
268
269   data_type: 'varchar'
270   is_nullable: 1
271   size: 255
272
273 =head2 contactname
274
275   data_type: 'longtext'
276   is_nullable: 1
277
278 =head2 contactfirstname
279
280   data_type: 'mediumtext'
281   is_nullable: 1
282
283 =head2 contacttitle
284
285   data_type: 'mediumtext'
286   is_nullable: 1
287
288 =head2 guarantorid
289
290   data_type: 'integer'
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   "borrowernumber",
437   { data_type => "integer", default_value => 0, is_nullable => 0 },
438   "cardnumber",
439   { data_type => "varchar", is_nullable => 1, size => 32 },
440   "surname",
441   { data_type => "longtext", is_nullable => 1 },
442   "firstname",
443   { data_type => "mediumtext", is_nullable => 1 },
444   "title",
445   { data_type => "longtext", is_nullable => 1 },
446   "othernames",
447   { data_type => "longtext", is_nullable => 1 },
448   "initials",
449   { data_type => "mediumtext", is_nullable => 1 },
450   "streetnumber",
451   { data_type => "varchar", is_nullable => 1, size => 10 },
452   "streettype",
453   { data_type => "varchar", is_nullable => 1, size => 50 },
454   "address",
455   { data_type => "longtext", is_nullable => 1 },
456   "address2",
457   { data_type => "mediumtext", is_nullable => 1 },
458   "city",
459   { data_type => "longtext", is_nullable => 1 },
460   "state",
461   { data_type => "mediumtext", is_nullable => 1 },
462   "zipcode",
463   { data_type => "varchar", is_nullable => 1, size => 25 },
464   "country",
465   { data_type => "mediumtext", is_nullable => 1 },
466   "email",
467   { data_type => "longtext", is_nullable => 1 },
468   "phone",
469   { data_type => "mediumtext", is_nullable => 1 },
470   "mobile",
471   { data_type => "varchar", is_nullable => 1, size => 50 },
472   "fax",
473   { data_type => "longtext", is_nullable => 1 },
474   "emailpro",
475   { data_type => "mediumtext", is_nullable => 1 },
476   "phonepro",
477   { data_type => "mediumtext", is_nullable => 1 },
478   "B_streetnumber",
479   {
480     accessor => "b_streetnumber",
481     data_type => "varchar",
482     is_nullable => 1,
483     size => 10,
484   },
485   "B_streettype",
486   {
487     accessor => "b_streettype",
488     data_type => "varchar",
489     is_nullable => 1,
490     size => 50,
491   },
492   "B_address",
493   {
494     accessor => "b_address",
495     data_type => "varchar",
496     is_nullable => 1,
497     size => 100,
498   },
499   "B_address2",
500   { accessor => "b_address2", data_type => "mediumtext", is_nullable => 1 },
501   "B_city",
502   { accessor => "b_city", data_type => "longtext", is_nullable => 1 },
503   "B_state",
504   { accessor => "b_state", data_type => "mediumtext", is_nullable => 1 },
505   "B_zipcode",
506   {
507     accessor => "b_zipcode",
508     data_type => "varchar",
509     is_nullable => 1,
510     size => 25,
511   },
512   "B_country",
513   { accessor => "b_country", data_type => "mediumtext", is_nullable => 1 },
514   "B_email",
515   { accessor => "b_email", data_type => "mediumtext", is_nullable => 1 },
516   "B_phone",
517   { accessor => "b_phone", data_type => "longtext", is_nullable => 1 },
518   "dateofbirth",
519   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
520   "branchcode",
521   { data_type => "varchar", is_nullable => 1, size => 10 },
522   "categorycode",
523   { data_type => "varchar", is_nullable => 1, size => 10 },
524   "dateenrolled",
525   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
526   "dateexpiry",
527   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
528   "date_renewed",
529   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
530   "gonenoaddress",
531   { data_type => "tinyint", is_nullable => 1 },
532   "lost",
533   { data_type => "tinyint", is_nullable => 1 },
534   "debarred",
535   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
536   "debarredcomment",
537   { data_type => "varchar", is_nullable => 1, size => 255 },
538   "contactname",
539   { data_type => "longtext", is_nullable => 1 },
540   "contactfirstname",
541   { data_type => "mediumtext", is_nullable => 1 },
542   "contacttitle",
543   { data_type => "mediumtext", is_nullable => 1 },
544   "guarantorid",
545   { data_type => "integer", 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.07042 @ 2018-09-20 13:00:20
614 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qQ0BWngri+79YvK9S8zZPg
615
616 sub koha_object_class {
617     'Koha::Patron::Modification';
618 }
619 sub koha_objects_class {
620     'Koha::Patron::Modifications';
621 }
622
623 1;