2 package Koha
::Schema
::Result
::BorrowerRelationship
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::BorrowerRelationship
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<borrower_relationships>
22 __PACKAGE__
->table("borrower_relationships");
52 __PACKAGE__
->add_columns(
54 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
56 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
58 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
60 { data_type
=> "varchar", is_nullable
=> 0, size
=> 100 },
73 __PACKAGE__
->set_primary_key("id");
75 =head1 UNIQUE CONSTRAINTS
77 =head2 C<guarantor_guarantee_idx>
81 =item * L</guarantor_id>
83 =item * L</guarantee_id>
89 __PACKAGE__
->add_unique_constraint("guarantor_guarantee_idx", ["guarantor_id", "guarantee_id"]);
97 Related object: L<Koha::Schema::Result::Borrower>
101 __PACKAGE__
->belongs_to(
103 "Koha::Schema::Result::Borrower",
104 { borrowernumber
=> "guarantee_id" },
105 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
112 Related object: L<Koha::Schema::Result::Borrower>
116 __PACKAGE__
->belongs_to(
118 "Koha::Schema::Result::Borrower",
119 { borrowernumber
=> "guarantor_id" },
123 on_delete
=> "CASCADE",
124 on_update
=> "CASCADE",
129 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-08-20 15:14:37
130 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZymvWAn9Nzfuh1lExUIhIg
132 sub koha_objects_class
{
133 'Koha::Patron::Relationships';
135 sub koha_object_class
{
136 'Koha::Patron::Relationship';