2 package Koha::Schema::Result::HouseboundRole;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::HouseboundRole
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<housebound_role>
22 __PACKAGE__->table("housebound_role");
26 =head2 borrowernumber_id
32 =head2 housebound_chooser
38 =head2 housebound_deliverer
46 __PACKAGE__->add_columns(
48 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
50 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
51 "housebound_deliverer",
52 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
59 =item * L</borrowernumber_id>
65 __PACKAGE__->set_primary_key("borrowernumber_id");
73 Related object: L<Koha::Schema::Result::Borrower>
77 __PACKAGE__->belongs_to(
79 "Koha::Schema::Result::Borrower",
80 { borrowernumber => "borrowernumber_id" },
81 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
85 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-21 18:20:25
86 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SU7khVgiUf1OVvaFpKaFPA
88 sub koha_object_class {
89 'Koha::Patron::HouseboundRole';
91 sub koha_objects_class {
92 'Koha::Patron::HouseboundRoles';