Bug 18936: (follow-up) Add cloning of circulation rules back to Koha
[koha.git] / Koha / Schema / Result / SavedSql.pm
blobf8567b37237e8e850fb6df90465835f827f94ffd
1 use utf8;
2 package Koha::Schema::Result::SavedSql;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::SavedSql
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<saved_sql>
20 =cut
22 __PACKAGE__->table("saved_sql");
24 =head1 ACCESSORS
26 =head2 id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 borrowernumber
34 data_type: 'integer'
35 is_nullable: 1
37 =head2 date_created
39 data_type: 'datetime'
40 datetime_undef_if_invalid: 1
41 is_nullable: 1
43 =head2 last_modified
45 data_type: 'datetime'
46 datetime_undef_if_invalid: 1
47 is_nullable: 1
49 =head2 savedsql
51 data_type: 'mediumtext'
52 is_nullable: 1
54 =head2 last_run
56 data_type: 'datetime'
57 datetime_undef_if_invalid: 1
58 is_nullable: 1
60 =head2 report_name
62 data_type: 'varchar'
63 default_value: (empty string)
64 is_nullable: 0
65 size: 255
67 =head2 type
69 data_type: 'varchar'
70 is_nullable: 1
71 size: 255
73 =head2 notes
75 data_type: 'mediumtext'
76 is_nullable: 1
78 =head2 cache_expiry
80 data_type: 'integer'
81 default_value: 300
82 is_nullable: 0
84 =head2 public
86 data_type: 'tinyint'
87 default_value: 0
88 is_nullable: 0
90 =head2 report_area
92 data_type: 'varchar'
93 is_nullable: 1
94 size: 6
96 =head2 report_group
98 data_type: 'varchar'
99 is_nullable: 1
100 size: 80
102 =head2 report_subgroup
104 data_type: 'varchar'
105 is_nullable: 1
106 size: 80
108 =head2 mana_id
110 data_type: 'integer'
111 is_nullable: 1
113 =cut
115 __PACKAGE__->add_columns(
116 "id",
117 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
118 "borrowernumber",
119 { data_type => "integer", is_nullable => 1 },
120 "date_created",
122 data_type => "datetime",
123 datetime_undef_if_invalid => 1,
124 is_nullable => 1,
126 "last_modified",
128 data_type => "datetime",
129 datetime_undef_if_invalid => 1,
130 is_nullable => 1,
132 "savedsql",
133 { data_type => "mediumtext", is_nullable => 1 },
134 "last_run",
136 data_type => "datetime",
137 datetime_undef_if_invalid => 1,
138 is_nullable => 1,
140 "report_name",
141 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
142 "type",
143 { data_type => "varchar", is_nullable => 1, size => 255 },
144 "notes",
145 { data_type => "mediumtext", is_nullable => 1 },
146 "cache_expiry",
147 { data_type => "integer", default_value => 300, is_nullable => 0 },
148 "public",
149 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
150 "report_area",
151 { data_type => "varchar", is_nullable => 1, size => 6 },
152 "report_group",
153 { data_type => "varchar", is_nullable => 1, size => 80 },
154 "report_subgroup",
155 { data_type => "varchar", is_nullable => 1, size => 80 },
156 "mana_id",
157 { data_type => "integer", is_nullable => 1 },
160 =head1 PRIMARY KEY
162 =over 4
164 =item * L</id>
166 =back
168 =cut
170 __PACKAGE__->set_primary_key("id");
173 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-01-23 12:56:39
174 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f7wxGGnBk3z6mw2CkaeD9A
176 sub koha_object_class {
177 'Koha::Report';
179 sub koha_objects_class {
180 'Koha::Reports';