View | Details | Raw Unified | Return to bug 17015
Collapse All | Expand All

(-)a/Koha/Schema/Result/DiscreteCalendar.pm (-1 / +111 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::DiscreteCalendar;
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::DiscreteCalendar
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<discrete_calendar>
19
20
=cut
21
22
__PACKAGE__->table("discrete_calendar");
23
24
=head1 ACCESSORS
25
26
=head2 date
27
28
  data_type: 'datetime'
29
  datetime_undef_if_invalid: 1
30
  is_nullable: 0
31
32
=head2 branchcode
33
34
  data_type: 'varchar'
35
  is_nullable: 0
36
  size: 10
37
38
=head2 is_opened
39
40
  data_type: 'tinyint'
41
  default_value: 1
42
  is_nullable: 1
43
44
=head2 holiday_type
45
46
  data_type: 'varchar'
47
  default_value: (empty string)
48
  is_nullable: 1
49
  size: 1
50
51
=head2 note
52
53
  data_type: 'varchar'
54
  default_value: (empty string)
55
  is_nullable: 1
56
  size: 30
57
58
=head2 open_hour
59
60
  data_type: 'time'
61
  is_nullable: 0
62
63
=head2 close_hour
64
65
  data_type: 'time'
66
  is_nullable: 0
67
68
=cut
69
70
__PACKAGE__->add_columns(
71
  "date",
72
  {
73
    data_type => "datetime",
74
    datetime_undef_if_invalid => 1,
75
    is_nullable => 0,
76
  },
77
  "branchcode",
78
  { data_type => "varchar", is_nullable => 0, size => 10 },
79
  "is_opened",
80
  { data_type => "tinyint", default_value => 1, is_nullable => 1 },
81
  "holiday_type",
82
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 1 },
83
  "note",
84
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 30 },
85
  "open_hour",
86
  { data_type => "time", is_nullable => 0 },
87
  "close_hour",
88
  { data_type => "time", is_nullable => 0 },
89
);
90
91
=head1 PRIMARY KEY
92
93
=over 4
94
95
=item * L</branchcode>
96
97
=item * L</date>
98
99
=back
100
101
=cut
102
103
__PACKAGE__->set_primary_key("branchcode", "date");
104
105
106
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2017-04-19 10:07:41
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wtctW8ZzCkyCZFZmmavFEw
108
109
110
# You can replace this text with custom code or comments, and it will be preserved on regeneration
111
1;

Return to bug 17015