Bug 32257: Label for patron attributes misaligned
[koha-ffzg.git] / Koha / Schema / Result / RepeatableHoliday.pm
1 use utf8;
2 package Koha::Schema::Result::RepeatableHoliday;
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::RepeatableHoliday
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<repeatable_holidays>
19
20 =cut
21
22 __PACKAGE__->table("repeatable_holidays");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 unique identifier assigned by Koha
33
34 =head2 branchcode
35
36   data_type: 'varchar'
37   is_foreign_key: 1
38   is_nullable: 0
39   size: 10
40
41 foreign key from the branches table, defines which branch this closing is for
42
43 =head2 weekday
44
45   data_type: 'smallint'
46   is_nullable: 1
47
48 day of the week (0=Sunday, 1=Monday, etc) this closing is repeated on
49
50 =head2 day
51
52   data_type: 'smallint'
53   is_nullable: 1
54
55 day of the month this closing is on
56
57 =head2 month
58
59   data_type: 'smallint'
60   is_nullable: 1
61
62 month this closing is in
63
64 =head2 title
65
66   data_type: 'varchar'
67   default_value: (empty string)
68   is_nullable: 0
69   size: 50
70
71 title of this closing
72
73 =head2 description
74
75   data_type: 'mediumtext'
76   is_nullable: 0
77
78 description for this closing
79
80 =cut
81
82 __PACKAGE__->add_columns(
83   "id",
84   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
85   "branchcode",
86   { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
87   "weekday",
88   { data_type => "smallint", is_nullable => 1 },
89   "day",
90   { data_type => "smallint", is_nullable => 1 },
91   "month",
92   { data_type => "smallint", is_nullable => 1 },
93   "title",
94   { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
95   "description",
96   { data_type => "mediumtext", is_nullable => 0 },
97 );
98
99 =head1 PRIMARY KEY
100
101 =over 4
102
103 =item * L</id>
104
105 =back
106
107 =cut
108
109 __PACKAGE__->set_primary_key("id");
110
111 =head1 RELATIONS
112
113 =head2 branchcode
114
115 Type: belongs_to
116
117 Related object: L<Koha::Schema::Result::Branch>
118
119 =cut
120
121 __PACKAGE__->belongs_to(
122   "branchcode",
123   "Koha::Schema::Result::Branch",
124   { branchcode => "branchcode" },
125   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
126 );
127
128
129 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
130 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OZykv+F1kgqeLvezCyhvZA
131
132
133 # You can replace this text with custom content, and it will be preserved on regeneration
134 1;