|
Line 0
Link Here
|
| 0 |
- |
1 |
use utf8; |
|
|
2 |
package Koha::Schema::Result::HouseboundVisit; |
| 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::HouseboundVisit |
| 10 |
|
| 11 |
=cut |
| 12 |
|
| 13 |
use strict; |
| 14 |
use warnings; |
| 15 |
|
| 16 |
use base 'DBIx::Class::Core'; |
| 17 |
|
| 18 |
=head1 TABLE: C<housebound_visit> |
| 19 |
|
| 20 |
=cut |
| 21 |
|
| 22 |
__PACKAGE__->table("housebound_visit"); |
| 23 |
|
| 24 |
=head1 ACCESSORS |
| 25 |
|
| 26 |
=head2 id |
| 27 |
|
| 28 |
data_type: 'integer' |
| 29 |
is_auto_increment: 1 |
| 30 |
is_nullable: 0 |
| 31 |
|
| 32 |
=head2 borrowernumber |
| 33 |
|
| 34 |
data_type: 'integer' |
| 35 |
is_foreign_key: 1 |
| 36 |
is_nullable: 0 |
| 37 |
|
| 38 |
=head2 appointment_date |
| 39 |
|
| 40 |
data_type: 'date' |
| 41 |
datetime_undef_if_invalid: 1 |
| 42 |
is_nullable: 1 |
| 43 |
|
| 44 |
=head2 day_segment |
| 45 |
|
| 46 |
data_type: 'varchar' |
| 47 |
is_nullable: 1 |
| 48 |
size: 10 |
| 49 |
|
| 50 |
=head2 chooser_brwnumber |
| 51 |
|
| 52 |
data_type: 'integer' |
| 53 |
is_foreign_key: 1 |
| 54 |
is_nullable: 1 |
| 55 |
|
| 56 |
=head2 deliverer_brwnumber |
| 57 |
|
| 58 |
data_type: 'integer' |
| 59 |
is_foreign_key: 1 |
| 60 |
is_nullable: 1 |
| 61 |
|
| 62 |
=cut |
| 63 |
|
| 64 |
__PACKAGE__->add_columns( |
| 65 |
"id", |
| 66 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
| 67 |
"borrowernumber", |
| 68 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 69 |
"appointment_date", |
| 70 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
| 71 |
"day_segment", |
| 72 |
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
| 73 |
"chooser_brwnumber", |
| 74 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
| 75 |
"deliverer_brwnumber", |
| 76 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
| 77 |
); |
| 78 |
|
| 79 |
=head1 PRIMARY KEY |
| 80 |
|
| 81 |
=over 4 |
| 82 |
|
| 83 |
=item * L</id> |
| 84 |
|
| 85 |
=back |
| 86 |
|
| 87 |
=cut |
| 88 |
|
| 89 |
__PACKAGE__->set_primary_key("id"); |
| 90 |
|
| 91 |
=head1 RELATIONS |
| 92 |
|
| 93 |
=head2 borrowernumber |
| 94 |
|
| 95 |
Type: belongs_to |
| 96 |
|
| 97 |
Related object: L<Koha::Schema::Result::HouseboundProfile> |
| 98 |
|
| 99 |
=cut |
| 100 |
|
| 101 |
__PACKAGE__->belongs_to( |
| 102 |
"borrowernumber", |
| 103 |
"Koha::Schema::Result::HouseboundProfile", |
| 104 |
{ borrowernumber => "borrowernumber" }, |
| 105 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
| 106 |
); |
| 107 |
|
| 108 |
=head2 chooser_brwnumber |
| 109 |
|
| 110 |
Type: belongs_to |
| 111 |
|
| 112 |
Related object: L<Koha::Schema::Result::Borrower> |
| 113 |
|
| 114 |
=cut |
| 115 |
|
| 116 |
__PACKAGE__->belongs_to( |
| 117 |
"chooser_brwnumber", |
| 118 |
"Koha::Schema::Result::Borrower", |
| 119 |
{ borrowernumber => "chooser_brwnumber" }, |
| 120 |
{ |
| 121 |
is_deferrable => 1, |
| 122 |
join_type => "LEFT", |
| 123 |
on_delete => "CASCADE", |
| 124 |
on_update => "CASCADE", |
| 125 |
}, |
| 126 |
); |
| 127 |
|
| 128 |
=head2 deliverer_brwnumber |
| 129 |
|
| 130 |
Type: belongs_to |
| 131 |
|
| 132 |
Related object: L<Koha::Schema::Result::Borrower> |
| 133 |
|
| 134 |
=cut |
| 135 |
|
| 136 |
__PACKAGE__->belongs_to( |
| 137 |
"deliverer_brwnumber", |
| 138 |
"Koha::Schema::Result::Borrower", |
| 139 |
{ borrowernumber => "deliverer_brwnumber" }, |
| 140 |
{ |
| 141 |
is_deferrable => 1, |
| 142 |
join_type => "LEFT", |
| 143 |
on_delete => "CASCADE", |
| 144 |
on_update => "CASCADE", |
| 145 |
}, |
| 146 |
); |
| 147 |
|
| 148 |
|
| 149 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-25 13:21:23 |
| 150 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5zyc7l2BtF5cgpZeKbJNZg |
| 151 |
|
| 152 |
|
| 153 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
| 154 |
1; |