ETLp/Schema/Result/EtlpSchedule.pm untested

filter: Statementstmt 0.0% 0 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 37 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package ETLp::Schema::Result::EtlpSchedule;
2  
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5  
6 use strict;
7 use warnings;
8  
9 use base 'DBIx::Class::Core';
10  
11 __PACKAGE__->load_components("InflateColumn::DateTime");
12  
13 =head1 NAME
14  
15 ETLp::Schema::Result::EtlpSchedule
16  
17 =cut
18  
19 __PACKAGE__->table("etlp_schedule");
20  
21 =head1 ACCESSORS
22  
23 =head2 schedule_id
24  
25 is_auto_increment: 1
26  
27 =head2 section_id
28  
29 data_type: 'integer'
30 is_foreign_key: 1
31 is_nullable: 0
32 original: {data_type => "number",size => [38,0]}
33  
34 =head2 user_updated
35  
36 data_type: 'integer'
37 is_foreign_key: 1
38 is_nullable: 0
39 original: {data_type => "number",size => [38,0]}
40  
41 =head2 user_created
42  
43 data_type: 'integer'
44 is_foreign_key: 1
45 is_nullable: 0
46 original: {data_type => "number",size => [38,0]}
47  
48 =head2 schedule_description
49  
50 data_type: 'clob'
51 is_nullable: 1
52  
53 =head2 schedule_comment
54  
55 data_type: 'clob'
56 is_nullable: 1
57  
58 =head2 status
59  
60 data_type: 'integer'
61 default_value: 1
62 is_nullable: 0
63 original: {data_type => "number",size => [38,0]}
64  
65 =head2 date_created
66  
67 data_type: 'datetime'
68 is_nullable: 0
69 original: {data_type => "date"}
70  
71 =head2 date_updated
72  
73 data_type: 'datetime'
74 is_nullable: 0
75 original: {data_type => "date"}
76  
77 =cut
78  
79 __PACKAGE__->add_columns(
80 "schedule_id",
81 { is_auto_increment => 1 },
82 "section_id",
83 {
84 data_type => "integer",
85 is_foreign_key => 1,
86 is_nullable => 0,
87 original => { data_type => "number", size => [38, 0] },
88 },
89 "user_updated",
90 {
91 data_type => "integer",
92 is_foreign_key => 1,
93 is_nullable => 0,
94 original => { data_type => "number", size => [38, 0] },
95 },
96 "user_created",
97 {
98 data_type => "integer",
99 is_foreign_key => 1,
100 is_nullable => 0,
101 original => { data_type => "number", size => [38, 0] },
102 },
103 "schedule_description",
104 { data_type => "clob", is_nullable => 1 },
105 "schedule_comment",
106 { data_type => "clob", is_nullable => 1 },
107 "status",
108 {
109 data_type => "integer",
110 default_value => 1,
111 is_nullable => 0,
112 original => { data_type => "number", size => [38, 0] },
113 },
114 "date_created",
115 {
116 data_type => "datetime",
117 is_nullable => 0,
118 original => { data_type => "date" },
119 },
120 "date_updated",
121 {
122 data_type => "datetime",
123 is_nullable => 0,
124 original => { data_type => "date" },
125 },
126 );
127 __PACKAGE__->set_primary_key("schedule_id");
128  
129 =head1 RELATIONS
130  
131 =head2 user_created
132  
133 Type: belongs_to
134  
135 Related object: L<ETLp::Schema::Result::EtlpUser>
136  
137 =cut
138  
139 __PACKAGE__->belongs_to(
140 "user_created",
141 "ETLp::Schema::Result::EtlpUser",
142 { user_id => "user_created" },
143 { on_delete => "CASCADE", on_update => "CASCADE" },
144 );
145  
146 =head2 section
147  
148 Type: belongs_to
149  
150 Related object: L<ETLp::Schema::Result::EtlpSection>
151  
152 =cut
153  
154 __PACKAGE__->belongs_to(
155 "section",
156 "ETLp::Schema::Result::EtlpSection",
157 { section_id => "section_id" },
158 { on_delete => "CASCADE", on_update => "CASCADE" },
159 );
160  
161 =head2 user_updated
162  
163 Type: belongs_to
164  
165 Related object: L<ETLp::Schema::Result::EtlpUser>
166  
167 =cut
168  
169 __PACKAGE__->belongs_to(
170 "user_updated",
171 "ETLp::Schema::Result::EtlpUser",
172 { user_id => "user_updated" },
173 { on_delete => "CASCADE", on_update => "CASCADE" },
174 );
175  
176 =head2 etlp_schedule_days_of_month
177  
178 Type: has_many
179  
180 Related object: L<ETLp::Schema::Result::EtlpScheduleDayOfMonth>
181  
182 =cut
183  
184 __PACKAGE__->has_many(
185 "etlp_schedule_days_of_month",
186 "ETLp::Schema::Result::EtlpScheduleDayOfMonth",
187 { "foreign.schedule_id" => "self.schedule_id" },
188 { cascade_copy => 0, cascade_delete => 0 },
189 );
190  
191 =head2 etlp_schedule_days_of_week
192  
193 Type: has_many
194  
195 Related object: L<ETLp::Schema::Result::EtlpScheduleDayOfWeek>
196  
197 =cut
198  
199 __PACKAGE__->has_many(
200 "etlp_schedule_days_of_week",
201 "ETLp::Schema::Result::EtlpScheduleDayOfWeek",
202 { "foreign.schedule_id" => "self.schedule_id" },
203 { cascade_copy => 0, cascade_delete => 0 },
204 );
205  
206 =head2 etlp_schedule_hours
207  
208 Type: has_many
209  
210 Related object: L<ETLp::Schema::Result::EtlpScheduleHour>
211  
212 =cut
213  
214 __PACKAGE__->has_many(
215 "etlp_schedule_hours",
216 "ETLp::Schema::Result::EtlpScheduleHour",
217 { "foreign.schedule_id" => "self.schedule_id" },
218 { cascade_copy => 0, cascade_delete => 0 },
219 );
220  
221 =head2 etlp_schedule_minutes
222  
223 Type: has_many
224  
225 Related object: L<ETLp::Schema::Result::EtlpScheduleMinute>
226  
227 =cut
228  
229 __PACKAGE__->has_many(
230 "etlp_schedule_minutes",
231 "ETLp::Schema::Result::EtlpScheduleMinute",
232 { "foreign.schedule_id" => "self.schedule_id" },
233 { cascade_copy => 0, cascade_delete => 0 },
234 );
235  
236 =head2 etlp_schedule_months
237  
238 Type: has_many
239  
240 Related object: L<ETLp::Schema::Result::EtlpScheduleMonth>
241  
242 =cut
243  
244 __PACKAGE__->has_many(
245 "etlp_schedule_months",
246 "ETLp::Schema::Result::EtlpScheduleMonth",
247 { "foreign.schedule_id" => "self.schedule_id" },
248 { cascade_copy => 0, cascade_delete => 0 },
249 );
250  
251  
252 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2010-06-25 13:03:18
253 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:e1lV06l6VpdE2BIajCMxlw
254  
255 use Data::Page::Navigation;
256  
257 # You can replace this text with custom content, and it will be preserved on regeneration
258 1;