Bug 26922: Regression tests
[koha.git] / Koha / Schema / Result / RepeatableHoliday.pm
blobf89f10a2f43a9fb066a99a483507b3a260f63c5f
1 use utf8;
2 package Koha::Schema::Result::RepeatableHoliday;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::RepeatableHoliday
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<repeatable_holidays>
20 =cut
22 __PACKAGE__->table("repeatable_holidays");
24 =head1 ACCESSORS
26 =head2 id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 branchcode
34 data_type: 'varchar'
35 is_foreign_key: 1
36 is_nullable: 0
37 size: 10
39 =head2 weekday
41 data_type: 'smallint'
42 is_nullable: 1
44 =head2 day
46 data_type: 'smallint'
47 is_nullable: 1
49 =head2 month
51 data_type: 'smallint'
52 is_nullable: 1
54 =head2 title
56 data_type: 'varchar'
57 default_value: (empty string)
58 is_nullable: 0
59 size: 50
61 =head2 description
63 data_type: 'mediumtext'
64 is_nullable: 0
66 =cut
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 },
85 =head1 PRIMARY KEY
87 =over 4
89 =item * L</id>
91 =back
93 =cut
95 __PACKAGE__->set_primary_key("id");
97 =head1 RELATIONS
99 =head2 branchcode
101 Type: belongs_to
103 Related object: L<Koha::Schema::Result::Branch>
105 =cut
107 __PACKAGE__->belongs_to(
108 "branchcode",
109 "Koha::Schema::Result::Branch",
110 { branchcode => "branchcode" },
111 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
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
119 # You can replace this text with custom content, and it will be preserved on regeneration