data_type: 'mediumtext'
is_nullable: 1
-=head2 guarantorid
-
- data_type: 'integer'
- is_nullable: 1
-
=head2 borrowernotes
data_type: 'longtext'
default_value: 1
is_nullable: 0
+=head2 privacy_guarantor_fines
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
=head2 privacy_guarantor_checkouts
data_type: 'tinyint'
data_type: 'timestamp'
datetime_undef_if_invalid: 1
- default_value: current_timestamp
+ default_value: 'current_timestamp()'
is_nullable: 0
=head2 lastseen
data_type: 'mediumtext'
is_nullable: 1
+=head2 anonymized
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 autorenew_checkouts
+
+ data_type: 'tinyint'
+ default_value: 1
+ is_nullable: 0
+
=cut
__PACKAGE__->add_columns(
{ data_type => "mediumtext", is_nullable => 1 },
"contacttitle",
{ data_type => "mediumtext", is_nullable => 1 },
- "guarantorid",
- { data_type => "integer", is_nullable => 1 },
"borrowernotes",
{ data_type => "longtext", is_nullable => 1 },
"relationship",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
"privacy",
{ data_type => "integer", default_value => 1, is_nullable => 0 },
+ "privacy_guarantor_fines",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
"privacy_guarantor_checkouts",
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
"checkprevcheckout",
{
data_type => "timestamp",
datetime_undef_if_invalid => 1,
- default_value => \"current_timestamp",
+ default_value => "current_timestamp()",
is_nullable => 0,
},
"lastseen",
{ data_type => "integer", default_value => 0, is_nullable => 1 },
"overdrive_auth_token",
{ data_type => "mediumtext", is_nullable => 1 },
+ "anonymized",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "autorenew_checkouts",
+ { data_type => "tinyint", default_value => 1, is_nullable => 0 },
);
=head1 PRIMARY KEY
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 accountlines_managers
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Accountline>
+
+=cut
+
+__PACKAGE__->has_many(
+ "accountlines_managers",
+ "Koha::Schema::Result::Accountline",
+ { "foreign.manager_id" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 api_keys
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ApiKey>
+
+=cut
+
+__PACKAGE__->has_many(
+ "api_keys",
+ "Koha::Schema::Result::ApiKey",
+ { "foreign.patron_id" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 aqbasketusers
Type: has_many
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 aqorders
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqorder>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqorders",
+ "Koha::Schema::Result::Aqorder",
+ { "foreign.created_by" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 article_requests
Type: has_many
{ cascade_copy => 0, cascade_delete => 0 },
);
-=head2 borrower_syncs
+=head2 borrower_relationships_guarantees
Type: has_many
-Related object: L<Koha::Schema::Result::BorrowerSync>
+Related object: L<Koha::Schema::Result::BorrowerRelationship>
=cut
__PACKAGE__->has_many(
- "borrower_syncs",
- "Koha::Schema::Result::BorrowerSync",
- { "foreign.borrowernumber" => "self.borrowernumber" },
+ "borrower_relationships_guarantees",
+ "Koha::Schema::Result::BorrowerRelationship",
+ { "foreign.guarantee_id" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 borrower_relationships_guarantors
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BorrowerRelationship>
+
+=cut
+
+__PACKAGE__->has_many(
+ "borrower_relationships_guarantors",
+ "Koha::Schema::Result::BorrowerRelationship",
+ { "foreign.guarantor_id" => "self.borrowernumber" },
{ cascade_copy => 0, cascade_delete => 0 },
);
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
);
+=head2 cash_register_actions
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::CashRegisterAction>
+
+=cut
+
+__PACKAGE__->has_many(
+ "cash_register_actions",
+ "Koha::Schema::Result::CashRegisterAction",
+ { "foreign.manager_id" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 categorycode
Type: belongs_to
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 club_holds_to_patron_holds
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ClubHoldsToPatronHold>
+
+=cut
+
+__PACKAGE__->has_many(
+ "club_holds_to_patron_holds",
+ "Koha::Schema::Result::ClubHoldsToPatronHold",
+ { "foreign.patron_id" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 course_instructors
Type: has_many
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 illcomments
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Illcomment>
+
+=cut
+
+__PACKAGE__->has_many(
+ "illcomments",
+ "Koha::Schema::Result::Illcomment",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 illrequests
Type: has_many
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 messages_borrowernumbers
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Message>
+
+=cut
+
+__PACKAGE__->has_many(
+ "messages_borrowernumbers",
+ "Koha::Schema::Result::Message",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 old_issues
Type: has_many
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 patron_consents
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::PatronConsent>
+
+=cut
+
+__PACKAGE__->has_many(
+ "patron_consents",
+ "Koha::Schema::Result::PatronConsent",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 patron_list_patrons
Type: has_many
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 return_claims_borrowernumbers
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ReturnClaim>
+
+=cut
+
+__PACKAGE__->has_many(
+ "return_claims_borrowernumbers",
+ "Koha::Schema::Result::ReturnClaim",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 return_claims_created_by
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ReturnClaim>
+
+=cut
+
+__PACKAGE__->has_many(
+ "return_claims_created_by",
+ "Koha::Schema::Result::ReturnClaim",
+ { "foreign.created_by" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 return_claims_resolved_by
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ReturnClaim>
+
+=cut
+
+__PACKAGE__->has_many(
+ "return_claims_resolved_by",
+ "Koha::Schema::Result::ReturnClaim",
+ { "foreign.resolved_by" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 return_claims_updated_by
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ReturnClaim>
+
+=cut
+
+__PACKAGE__->has_many(
+ "return_claims_updated_by",
+ "Koha::Schema::Result::ReturnClaim",
+ { "foreign.updated_by" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 reviews
Type: has_many
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 suggestions_acceptedbies
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Suggestion>
+
+=cut
+
+__PACKAGE__->has_many(
+ "suggestions_acceptedbies",
+ "Koha::Schema::Result::Suggestion",
+ { "foreign.acceptedby" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 suggestions_managedbies
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Suggestion>
+
+=cut
+
+__PACKAGE__->has_many(
+ "suggestions_managedbies",
+ "Koha::Schema::Result::Suggestion",
+ { "foreign.managedby" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 suggestions_rejectedbies
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Suggestion>
+
+=cut
+
+__PACKAGE__->has_many(
+ "suggestions_rejectedbies",
+ "Koha::Schema::Result::Suggestion",
+ { "foreign.rejectedby" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 suggestions_suggestedbies
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Suggestion>
+
+=cut
+
+__PACKAGE__->has_many(
+ "suggestions_suggestedbies",
+ "Koha::Schema::Result::Suggestion",
+ { "foreign.suggestedby" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 tags_all
Type: has_many
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wM40W+toV8ca5LFwinkHxA
-
-__PACKAGE__->belongs_to(
- "guarantor",
- "Koha::Schema::Result::Borrower",
- { borrowernumber => "guarantorid" },
-);
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-23 11:45:25
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SkCqcE0Wpja6r/hZ0yZLNA
__PACKAGE__->add_columns(
- '+lost' => { is_boolean => 1 },
- '+gonenoaddress' => { is_boolean => 1 }
+ '+anonymized' => { is_boolean => 1 },
+ '+lost' => { is_boolean => 1 },
+ '+gonenoaddress' => { is_boolean => 1 },
+ '+privacy_guarantor_fines' => { is_boolean => 1 },
+ '+autorenew_checkouts' => { is_boolean => 1 }
);
sub koha_objects_class {
'Koha::Patrons';
}
+sub koha_object_class {
+ 'Koha::Patron';
+}
1;