Bug 4461: dbic schema update
[koha.git] / Koha / Schema / Result / HouseboundRole.pm
blob7c1489ed334fae32827f6e89a19a39794de62a6d
1 use utf8;
2 package Koha::Schema::Result::HouseboundRole;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::HouseboundRole
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<housebound_role>
20 =cut
22 __PACKAGE__->table("housebound_role");
24 =head1 ACCESSORS
26 =head2 borrowernumber_id
28 data_type: 'integer'
29 is_foreign_key: 1
30 is_nullable: 0
32 =head2 housebound_chooser
34 data_type: 'tinyint'
35 default_value: 0
36 is_nullable: 0
38 =head2 housebound_deliverer
40 data_type: 'tinyint'
41 default_value: 0
42 is_nullable: 0
44 =cut
46 __PACKAGE__->add_columns(
47 "borrowernumber_id",
48 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
49 "housebound_chooser",
50 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
51 "housebound_deliverer",
52 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
55 =head1 PRIMARY KEY
57 =over 4
59 =item * L</borrowernumber_id>
61 =back
63 =cut
65 __PACKAGE__->set_primary_key("borrowernumber_id");
67 =head1 RELATIONS
69 =head2 borrowernumber
71 Type: belongs_to
73 Related object: L<Koha::Schema::Result::Borrower>
75 =cut
77 __PACKAGE__->belongs_to(
78 "borrowernumber",
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';