Bug 24151: DBIC changes
[koha.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 =head2 branchcode
33
34   data_type: 'varchar'
35   is_foreign_key: 1
36   is_nullable: 0
37   size: 10
38
39 =head2 weekday
40
41   data_type: 'smallint'
42   is_nullable: 1
43
44 =head2 day
45
46   data_type: 'smallint'
47   is_nullable: 1
48
49 =head2 month
50
51   data_type: 'smallint'
52   is_nullable: 1
53
54 =head2 title
55
56   data_type: 'varchar'
57   default_value: (empty string)
58   is_nullable: 0
59   size: 50
60
61 =head2 description
62
63   data_type: 'mediumtext'
64   is_nullable: 0
65
66 =cut
67
68 __PACKAGE__->add_columns(
69   "id",
70   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
71   "branchcode",
72   { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
73   "weekday",
74   { data_type => "smallint", is_nullable => 1 },
75   "day",
76   { data_type => "smallint", is_nullable => 1 },
77   "month",
78   { data_type => "smallint", is_nullable => 1 },
79   "title",
80   { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
81   "description",
82   { data_type => "mediumtext", is_nullable => 0 },
83 );
84
85 =head1 PRIMARY KEY
86
87 =over 4
88
89 =item * L</id>
90
91 =back
92
93 =cut
94
95 __PACKAGE__->set_primary_key("id");
96
97 =head1 RELATIONS
98
99 =head2 branchcode
100
101 Type: belongs_to
102
103 Related object: L<Koha::Schema::Result::Branch>
104
105 =cut
106
107 __PACKAGE__->belongs_to(
108   "branchcode",
109   "Koha::Schema::Result::Branch",
110   { branchcode => "branchcode" },
111   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
112 );
113
114
115 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-01-20 13:57:27
116 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bBw2WEvzF5sX+AOteNsPPQ
117
118
119 # You can replace this text with custom content, and it will be preserved on regeneration
120 1;