Line 0
Link Here
|
0 |
- |
1 |
use utf8; |
|
|
2 |
package Koha::Schema::Result::BranchHour; |
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::BranchHour |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<branch_hours> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("branch_hours"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 branchcode |
27 |
|
28 |
data_type: 'varchar' |
29 |
is_foreign_key: 1 |
30 |
is_nullable: 0 |
31 |
size: 10 |
32 |
|
33 |
=head2 day |
34 |
|
35 |
data_type: 'integer' |
36 |
default_value: 0 |
37 |
is_nullable: 0 |
38 |
|
39 |
=head2 open_time |
40 |
|
41 |
data_type: 'time' |
42 |
is_nullable: 1 |
43 |
|
44 |
=head2 close_time |
45 |
|
46 |
data_type: 'time' |
47 |
is_nullable: 1 |
48 |
|
49 |
=cut |
50 |
|
51 |
__PACKAGE__->add_columns( |
52 |
"branchcode", |
53 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, |
54 |
"day", |
55 |
{ data_type => "integer", default_value => 0, is_nullable => 0 }, |
56 |
"open_time", |
57 |
{ data_type => "time", is_nullable => 1 }, |
58 |
"close_time", |
59 |
{ data_type => "time", is_nullable => 1 }, |
60 |
); |
61 |
|
62 |
=head1 PRIMARY KEY |
63 |
|
64 |
=over 4 |
65 |
|
66 |
=item * L</branchcode> |
67 |
|
68 |
=item * L</day> |
69 |
|
70 |
=back |
71 |
|
72 |
=cut |
73 |
|
74 |
__PACKAGE__->set_primary_key("branchcode", "day"); |
75 |
|
76 |
=head1 RELATIONS |
77 |
|
78 |
=head2 branchcode |
79 |
|
80 |
Type: belongs_to |
81 |
|
82 |
Related object: L<Koha::Schema::Result::Branch> |
83 |
|
84 |
=cut |
85 |
|
86 |
__PACKAGE__->belongs_to( |
87 |
"branchcode", |
88 |
"Koha::Schema::Result::Branch", |
89 |
{ branchcode => "branchcode" }, |
90 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
91 |
); |
92 |
|
93 |
|
94 |
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-09-07 15:26:05 |
95 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IOwQ7WPWaPXJP+IFAbQoTg |
96 |
|
97 |
|
98 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
99 |
1; |