Bug 32257: Label for patron attributes misaligned
[koha-ffzg.git] / Koha / Schema / Result / SavedSql.pm
1 use utf8;
2 package Koha::Schema::Result::SavedSql;
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::SavedSql
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<saved_sql>
19
20 =cut
21
22 __PACKAGE__->table("saved_sql");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 unique id and primary key assigned by Koha
33
34 =head2 borrowernumber
35
36   data_type: 'integer'
37   is_nullable: 1
38
39 the staff member who created this report (borrowers.borrowernumber)
40
41 =head2 date_created
42
43   data_type: 'datetime'
44   datetime_undef_if_invalid: 1
45   is_nullable: 1
46
47 the date this report was created
48
49 =head2 last_modified
50
51   data_type: 'datetime'
52   datetime_undef_if_invalid: 1
53   is_nullable: 1
54
55 the date this report was last edited
56
57 =head2 savedsql
58
59   data_type: 'mediumtext'
60   is_nullable: 1
61
62 the SQL for this report
63
64 =head2 last_run
65
66   data_type: 'datetime'
67   datetime_undef_if_invalid: 1
68   is_nullable: 1
69
70 =head2 report_name
71
72   data_type: 'varchar'
73   default_value: (empty string)
74   is_nullable: 0
75   size: 255
76
77 the name of this report
78
79 =head2 type
80
81   data_type: 'varchar'
82   is_nullable: 1
83   size: 255
84
85 always 1 for tabular
86
87 =head2 notes
88
89   data_type: 'mediumtext'
90   is_nullable: 1
91
92 the notes or description given to this report
93
94 =head2 cache_expiry
95
96   data_type: 'integer'
97   default_value: 300
98   is_nullable: 0
99
100 =head2 public
101
102   data_type: 'tinyint'
103   default_value: 0
104   is_nullable: 0
105
106 =head2 report_area
107
108   data_type: 'varchar'
109   is_nullable: 1
110   size: 6
111
112 =head2 report_group
113
114   data_type: 'varchar'
115   is_nullable: 1
116   size: 80
117
118 =head2 report_subgroup
119
120   data_type: 'varchar'
121   is_nullable: 1
122   size: 80
123
124 =head2 mana_id
125
126   data_type: 'integer'
127   is_nullable: 1
128
129 =cut
130
131 __PACKAGE__->add_columns(
132   "id",
133   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
134   "borrowernumber",
135   { data_type => "integer", is_nullable => 1 },
136   "date_created",
137   {
138     data_type => "datetime",
139     datetime_undef_if_invalid => 1,
140     is_nullable => 1,
141   },
142   "last_modified",
143   {
144     data_type => "datetime",
145     datetime_undef_if_invalid => 1,
146     is_nullable => 1,
147   },
148   "savedsql",
149   { data_type => "mediumtext", is_nullable => 1 },
150   "last_run",
151   {
152     data_type => "datetime",
153     datetime_undef_if_invalid => 1,
154     is_nullable => 1,
155   },
156   "report_name",
157   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
158   "type",
159   { data_type => "varchar", is_nullable => 1, size => 255 },
160   "notes",
161   { data_type => "mediumtext", is_nullable => 1 },
162   "cache_expiry",
163   { data_type => "integer", default_value => 300, is_nullable => 0 },
164   "public",
165   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
166   "report_area",
167   { data_type => "varchar", is_nullable => 1, size => 6 },
168   "report_group",
169   { data_type => "varchar", is_nullable => 1, size => 80 },
170   "report_subgroup",
171   { data_type => "varchar", is_nullable => 1, size => 80 },
172   "mana_id",
173   { data_type => "integer", is_nullable => 1 },
174 );
175
176 =head1 PRIMARY KEY
177
178 =over 4
179
180 =item * L</id>
181
182 =back
183
184 =cut
185
186 __PACKAGE__->set_primary_key("id");
187
188
189 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
190 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:198dNG9DGQzop+s5IHy7sw
191
192 __PACKAGE__->add_columns(
193     '+public' => { is_boolean => 1 }
194 );
195
196 sub koha_object_class {
197     'Koha::Report';
198 }
199 sub koha_objects_class {
200     'Koha::Reports';
201 }
202
203 1;