2 package Koha::Schema::Result::RepeatableHoliday;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::RepeatableHoliday
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<repeatable_holidays>
22 __PACKAGE__->table("repeatable_holidays");
32 unique identifier assigned by Koha
41 foreign key from the branches table, defines which branch this closing is for
48 day of the week (0=Sunday, 1=Monday, etc) this closing is repeated on
55 day of the month this closing is on
62 month this closing is in
67 default_value: (empty string)
75 data_type: 'mediumtext'
78 description for this closing
82 __PACKAGE__->add_columns(
84 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
86 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
88 { data_type => "smallint", is_nullable => 1 },
90 { data_type => "smallint", is_nullable => 1 },
92 { data_type => "smallint", is_nullable => 1 },
94 { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
96 { data_type => "mediumtext", is_nullable => 0 },
109 __PACKAGE__->set_primary_key("id");
117 Related object: L<Koha::Schema::Result::Branch>
121 __PACKAGE__->belongs_to(
123 "Koha::Schema::Result::Branch",
124 { branchcode => "branchcode" },
125 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
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
133 # You can replace this text with custom content, and it will be preserved on regeneration