2 package Koha
::Schema
::Result
::PatronConsent
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::PatronConsent
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<patron_consent>
22 __PACKAGE__
->table("patron_consent");
41 extra: {list => ["GDPR_PROCESSING"]}
47 datetime_undef_if_invalid: 1
53 datetime_undef_if_invalid: 1
58 __PACKAGE__
->add_columns(
60 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
62 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
66 extra
=> { list
=> ["GDPR_PROCESSING"] },
71 data_type
=> "datetime",
72 datetime_undef_if_invalid
=> 1,
77 data_type
=> "datetime",
78 datetime_undef_if_invalid
=> 1,
93 __PACKAGE__
->set_primary_key("id");
101 Related object: L<Koha::Schema::Result::Borrower>
105 __PACKAGE__
->belongs_to(
107 "Koha::Schema::Result::Borrower",
108 { borrowernumber
=> "borrowernumber" },
109 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
113 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-20 13:00:20
114 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:as3b13eS31zkIPr9uxP7+A
116 sub koha_object_class
{
117 'Koha::Patron::Consent';
119 sub koha_objects_class
{
120 'Koha::Patron::Consents';