2 package Koha::Schema::Result::SpecialHoliday;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::SpecialHoliday
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<special_holidays>
22 __PACKAGE__->table("special_holidays");
32 unique identifier assigned by Koha
41 foreign key from the branches table, defines which branch this closing is for
49 day of the month this closing is on
57 month this closing is in
65 year this closing is in
73 is this a holiday exception to a repeatable holiday (1 for yes, 0 for no)
78 default_value: (empty string)
82 title for this closing
86 data_type: 'mediumtext'
89 description of this closing
93 __PACKAGE__->add_columns(
95 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
97 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
99 { data_type => "smallint", default_value => 0, is_nullable => 0 },
101 { data_type => "smallint", default_value => 0, is_nullable => 0 },
103 { data_type => "smallint", default_value => 0, is_nullable => 0 },
105 { data_type => "smallint", default_value => 1, is_nullable => 0 },
107 { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
109 { data_type => "mediumtext", is_nullable => 0 },
122 __PACKAGE__->set_primary_key("id");
130 Related object: L<Koha::Schema::Result::Branch>
134 __PACKAGE__->belongs_to(
136 "Koha::Schema::Result::Branch",
137 { branchcode => "branchcode" },
138 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
142 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
143 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:H3PUa5HiJKKfdndKXbmJ6A
146 # You can replace this text with custom content, and it will be preserved on regeneration