2 package Koha::Schema::Result::HouseboundProfile;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::HouseboundProfile
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<housebound_profile>
22 __PACKAGE__->table("housebound_profile");
69 __PACKAGE__->add_columns(
71 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
73 { data_type => "text", is_nullable => 0 },
75 { data_type => "text", is_nullable => 0 },
77 { data_type => "text", is_nullable => 1 },
79 { data_type => "text", is_nullable => 1 },
81 { data_type => "text", is_nullable => 1 },
83 { data_type => "text", is_nullable => 1 },
85 { data_type => "text", is_nullable => 1 },
92 =item * L</borrowernumber>
98 __PACKAGE__->set_primary_key("borrowernumber");
102 =head2 borrowernumber
106 Related object: L<Koha::Schema::Result::Borrower>
110 __PACKAGE__->belongs_to(
112 "Koha::Schema::Result::Borrower",
113 { borrowernumber => "borrowernumber" },
114 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
117 =head2 housebound_visits
121 Related object: L<Koha::Schema::Result::HouseboundVisit>
125 __PACKAGE__->has_many(
127 "Koha::Schema::Result::HouseboundVisit",
128 { "foreign.borrowernumber" => "self.borrowernumber" },
129 { cascade_copy => 0, cascade_delete => 0 },
133 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-25 13:21:23
134 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kY+BhDo9g/YCShkmFUVDYA
137 # You can replace this text with custom code or comments, and it will be preserved on regeneration