Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / SpecialHoliday.pm
blobf398f209f997f4200420b8dc180257444dcdf22c
1 use utf8;
2 package Koha::Schema::Result::SpecialHoliday;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::SpecialHoliday
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<special_holidays>
20 =cut
22 __PACKAGE__->table("special_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 day
41 data_type: 'smallint'
42 default_value: 0
43 is_nullable: 0
45 =head2 month
47 data_type: 'smallint'
48 default_value: 0
49 is_nullable: 0
51 =head2 year
53 data_type: 'smallint'
54 default_value: 0
55 is_nullable: 0
57 =head2 isexception
59 data_type: 'smallint'
60 default_value: 1
61 is_nullable: 0
63 =head2 title
65 data_type: 'varchar'
66 default_value: (empty string)
67 is_nullable: 0
68 size: 50
70 =head2 description
72 data_type: 'mediumtext'
73 is_nullable: 0
75 =cut
77 __PACKAGE__->add_columns(
78 "id",
79 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
80 "branchcode",
81 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
82 "day",
83 { data_type => "smallint", default_value => 0, is_nullable => 0 },
84 "month",
85 { data_type => "smallint", default_value => 0, is_nullable => 0 },
86 "year",
87 { data_type => "smallint", default_value => 0, is_nullable => 0 },
88 "isexception",
89 { data_type => "smallint", default_value => 1, is_nullable => 0 },
90 "title",
91 { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
92 "description",
93 { data_type => "mediumtext", is_nullable => 0 },
96 =head1 PRIMARY KEY
98 =over 4
100 =item * L</id>
102 =back
104 =cut
106 __PACKAGE__->set_primary_key("id");
108 =head1 RELATIONS
110 =head2 branchcode
112 Type: belongs_to
114 Related object: L<Koha::Schema::Result::Branch>
116 =cut
118 __PACKAGE__->belongs_to(
119 "branchcode",
120 "Koha::Schema::Result::Branch",
121 { branchcode => "branchcode" },
122 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
126 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-01-20 13:57:27
127 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cj8Oveni0l6kAR/azmw4SA
130 # You can replace this text with custom content, and it will be preserved on regeneration