Bug 23152: Implement koha_object[s]_class when needed
[koha-equinox.git] / Koha / Schema / Result / HouseboundRole.pm
1 use utf8;
2 package Koha::Schema::Result::HouseboundRole;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::HouseboundRole
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<housebound_role>
19
20 =cut
21
22 __PACKAGE__->table("housebound_role");
23
24 =head1 ACCESSORS
25
26 =head2 borrowernumber_id
27
28   data_type: 'integer'
29   is_foreign_key: 1
30   is_nullable: 0
31
32 =head2 housebound_chooser
33
34   data_type: 'tinyint'
35   default_value: 0
36   is_nullable: 0
37
38 =head2 housebound_deliverer
39
40   data_type: 'tinyint'
41   default_value: 0
42   is_nullable: 0
43
44 =cut
45
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 },
53 );
54
55 =head1 PRIMARY KEY
56
57 =over 4
58
59 =item * L</borrowernumber_id>
60
61 =back
62
63 =cut
64
65 __PACKAGE__->set_primary_key("borrowernumber_id");
66
67 =head1 RELATIONS
68
69 =head2 borrowernumber
70
71 Type: belongs_to
72
73 Related object: L<Koha::Schema::Result::Borrower>
74
75 =cut
76
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" },
82 );
83
84
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
87
88 sub koha_object_class {
89     'Koha::Patron::HouseboundRole';
90 }
91 sub koha_objects_class {
92     'Koha::Patron::HouseboundRoles';
93 }
94
95 1;