Bug 32257: Label for patron attributes misaligned
[koha-ffzg.git] / Koha / Schema / Result / CurbsidePickupOpeningSlot.pm
1 use utf8;
2 package Koha::Schema::Result::CurbsidePickupOpeningSlot;
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::CurbsidePickupOpeningSlot
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<curbside_pickup_opening_slots>
19
20 =cut
21
22 __PACKAGE__->table("curbside_pickup_opening_slots");
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 curbside_pickup_policy_id
33
34   data_type: 'integer'
35   is_foreign_key: 1
36   is_nullable: 0
37
38 =head2 day
39
40   data_type: 'tinyint'
41   is_nullable: 0
42
43 =head2 start_hour
44
45   data_type: 'integer'
46   is_nullable: 0
47
48 =head2 start_minute
49
50   data_type: 'integer'
51   is_nullable: 0
52
53 =head2 end_hour
54
55   data_type: 'integer'
56   is_nullable: 0
57
58 =head2 end_minute
59
60   data_type: 'integer'
61   is_nullable: 0
62
63 =cut
64
65 __PACKAGE__->add_columns(
66   "id",
67   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
68   "curbside_pickup_policy_id",
69   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
70   "day",
71   { data_type => "tinyint", is_nullable => 0 },
72   "start_hour",
73   { data_type => "integer", is_nullable => 0 },
74   "start_minute",
75   { data_type => "integer", is_nullable => 0 },
76   "end_hour",
77   { data_type => "integer", is_nullable => 0 },
78   "end_minute",
79   { data_type => "integer", is_nullable => 0 },
80 );
81
82 =head1 PRIMARY KEY
83
84 =over 4
85
86 =item * L</id>
87
88 =back
89
90 =cut
91
92 __PACKAGE__->set_primary_key("id");
93
94 =head1 RELATIONS
95
96 =head2 curbside_pickup_policy
97
98 Type: belongs_to
99
100 Related object: L<Koha::Schema::Result::CurbsidePickupPolicy>
101
102 =cut
103
104 __PACKAGE__->belongs_to(
105   "curbside_pickup_policy",
106   "Koha::Schema::Result::CurbsidePickupPolicy",
107   { id => "curbside_pickup_policy_id" },
108   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
109 );
110
111
112 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-27 11:58:44
113 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5kzC0AAB9LL0gR+FFnmYgw
114
115
116 # You can replace this text with custom code or comments, and it will be preserved on regeneration
117 1;