RackTables/0_20_0/Result/Object.pm untested

filter: Statementstmt 0.0% 0 / 49 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 53 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 package Schema::RackTables::0_20_0::Result::Object;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 =head1 NAME
8  
9 Schema::RackTables::0_20_0::Result::Object
10  
11 =cut
12  
13 use strict;
14 use warnings;
15  
16 use base 'DBIx::Class::Core';
17  
18 =head1 COMPONENTS LOADED
19  
20 =over 4
21  
22 =item * L<DBIx::Class::InflateColumn::DateTime>
23  
24 =back
25  
26 =cut
27  
28 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<Object>
31  
32 =cut
33  
34 __PACKAGE__->table("Object");
35  
36 =head1 ACCESSORS
37  
38 =head2 id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_auto_increment: 1
43 is_nullable: 0
44  
45 =head2 name
46  
47 data_type: 'char'
48 is_nullable: 1
49 size: 255
50  
51 =head2 label
52  
53 data_type: 'char'
54 is_nullable: 1
55 size: 255
56  
57 =head2 objtype_id
58  
59 data_type: 'integer'
60 default_value: 1
61 extra: {unsigned => 1}
62 is_nullable: 0
63  
64 =head2 asset_no
65  
66 data_type: 'char'
67 is_nullable: 1
68 size: 64
69  
70 =head2 has_problems
71  
72 data_type: 'enum'
73 default_value: 'no'
74 extra: {list => ["yes","no"]}
75 is_nullable: 0
76  
77 =head2 comment
78  
79 data_type: 'text'
80 is_nullable: 1
81  
82 =cut
83  
84 __PACKAGE__->add_columns(
85 "id",
86 {
87 data_type => "integer",
88 extra => { unsigned => 1 },
89 is_auto_increment => 1,
90 is_nullable => 0,
91 },
92 "name",
93 { data_type => "char", is_nullable => 1, size => 255 },
94 "label",
95 { data_type => "char", is_nullable => 1, size => 255 },
96 "objtype_id",
97 {
98 data_type => "integer",
99 default_value => 1,
100 extra => { unsigned => 1 },
101 is_nullable => 0,
102 },
103 "asset_no",
104 { data_type => "char", is_nullable => 1, size => 64 },
105 "has_problems",
106 {
107 data_type => "enum",
108 default_value => "no",
109 extra => { list => ["yes", "no"] },
110 is_nullable => 0,
111 },
112 "comment",
113 { data_type => "text", is_nullable => 1 },
114 );
115  
116 =head1 PRIMARY KEY
117  
118 =over 4
119  
120 =item * L</id>
121  
122 =back
123  
124 =cut
125  
126 __PACKAGE__->set_primary_key("id");
127  
128 =head1 UNIQUE CONSTRAINTS
129  
130 =head2 C<asset_no>
131  
132 =over 4
133  
134 =item * L</asset_no>
135  
136 =back
137  
138 =cut
139  
140 __PACKAGE__->add_unique_constraint("asset_no", ["asset_no"]);
141  
142 =head1 RELATIONS
143  
144 =head2 attribute_values
145  
146 Type: has_many
147  
148 Related object: L<Schema::RackTables::0_20_0::Result::AttributeValue>
149  
150 =cut
151  
152 __PACKAGE__->has_many(
153 "attribute_values",
154 "Schema::RackTables::0_20_0::Result::AttributeValue",
155 {
156 "foreign.object_id" => "self.id",
157 "foreign.object_tid" => "self.objtype_id",
158 },
159 { cascade_copy => 0, cascade_delete => 0 },
160 );
161  
162 =head2 cached_pvms
163  
164 Type: has_many
165  
166 Related object: L<Schema::RackTables::0_20_0::Result::CachedPVM>
167  
168 =cut
169  
170 __PACKAGE__->has_many(
171 "cached_pvms",
172 "Schema::RackTables::0_20_0::Result::CachedPVM",
173 { "foreign.object_id" => "self.id" },
174 { cascade_copy => 0, cascade_delete => 0 },
175 );
176  
177 =head2 cacti_graphs
178  
179 Type: has_many
180  
181 Related object: L<Schema::RackTables::0_20_0::Result::CactiGraph>
182  
183 =cut
184  
185 __PACKAGE__->has_many(
186 "cacti_graphs",
187 "Schema::RackTables::0_20_0::Result::CactiGraph",
188 { "foreign.object_id" => "self.id" },
189 { cascade_copy => 0, cascade_delete => 0 },
190 );
191  
192 =head2 ipv4_allocations
193  
194 Type: has_many
195  
196 Related object: L<Schema::RackTables::0_20_0::Result::IPv4Allocation>
197  
198 =cut
199  
200 __PACKAGE__->has_many(
201 "ipv4_allocations",
202 "Schema::RackTables::0_20_0::Result::IPv4Allocation",
203 { "foreign.object_id" => "self.id" },
204 { cascade_copy => 0, cascade_delete => 0 },
205 );
206  
207 =head2 ipv4_lbs
208  
209 Type: has_many
210  
211 Related object: L<Schema::RackTables::0_20_0::Result::IPv4LB>
212  
213 =cut
214  
215 __PACKAGE__->has_many(
216 "ipv4_lbs",
217 "Schema::RackTables::0_20_0::Result::IPv4LB",
218 { "foreign.object_id" => "self.id" },
219 { cascade_copy => 0, cascade_delete => 0 },
220 );
221  
222 =head2 ipv4_nats
223  
224 Type: has_many
225  
226 Related object: L<Schema::RackTables::0_20_0::Result::IPv4NAT>
227  
228 =cut
229  
230 __PACKAGE__->has_many(
231 "ipv4_nats",
232 "Schema::RackTables::0_20_0::Result::IPv4NAT",
233 { "foreign.object_id" => "self.id" },
234 { cascade_copy => 0, cascade_delete => 0 },
235 );
236  
237 =head2 ipv6_allocations
238  
239 Type: has_many
240  
241 Related object: L<Schema::RackTables::0_20_0::Result::IPv6Allocation>
242  
243 =cut
244  
245 __PACKAGE__->has_many(
246 "ipv6_allocations",
247 "Schema::RackTables::0_20_0::Result::IPv6Allocation",
248 { "foreign.object_id" => "self.id" },
249 { cascade_copy => 0, cascade_delete => 0 },
250 );
251  
252 =head2 mount_operations
253  
254 Type: has_many
255  
256 Related object: L<Schema::RackTables::0_20_0::Result::MountOperation>
257  
258 =cut
259  
260 __PACKAGE__->has_many(
261 "mount_operations",
262 "Schema::RackTables::0_20_0::Result::MountOperation",
263 { "foreign.object_id" => "self.id" },
264 { cascade_copy => 0, cascade_delete => 0 },
265 );
266  
267 =head2 object_histories
268  
269 Type: has_many
270  
271 Related object: L<Schema::RackTables::0_20_0::Result::ObjectHistory>
272  
273 =cut
274  
275 __PACKAGE__->has_many(
276 "object_histories",
277 "Schema::RackTables::0_20_0::Result::ObjectHistory",
278 { "foreign.id" => "self.id" },
279 { cascade_copy => 0, cascade_delete => 0 },
280 );
281  
282 =head2 object_logs
283  
284 Type: has_many
285  
286 Related object: L<Schema::RackTables::0_20_0::Result::ObjectLog>
287  
288 =cut
289  
290 __PACKAGE__->has_many(
291 "object_logs",
292 "Schema::RackTables::0_20_0::Result::ObjectLog",
293 { "foreign.object_id" => "self.id" },
294 { cascade_copy => 0, cascade_delete => 0 },
295 );
296  
297 =head2 ports
298  
299 Type: has_many
300  
301 Related object: L<Schema::RackTables::0_20_0::Result::Port>
302  
303 =cut
304  
305 __PACKAGE__->has_many(
306 "ports",
307 "Schema::RackTables::0_20_0::Result::Port",
308 { "foreign.object_id" => "self.id" },
309 { cascade_copy => 0, cascade_delete => 0 },
310 );
311  
312 =head2 rack_space_objects
313  
314 Type: has_many
315  
316 Related object: L<Schema::RackTables::0_20_0::Result::RackSpace>
317  
318 =cut
319  
320 __PACKAGE__->has_many(
321 "rack_space_objects",
322 "Schema::RackTables::0_20_0::Result::RackSpace",
323 { "foreign.object_id" => "self.id" },
324 { cascade_copy => 0, cascade_delete => 0 },
325 );
326  
327 =head2 rack_space_racks
328  
329 Type: has_many
330  
331 Related object: L<Schema::RackTables::0_20_0::Result::RackSpace>
332  
333 =cut
334  
335 __PACKAGE__->has_many(
336 "rack_space_racks",
337 "Schema::RackTables::0_20_0::Result::RackSpace",
338 { "foreign.rack_id" => "self.id" },
339 { cascade_copy => 0, cascade_delete => 0 },
340 );
341  
342 =head2 rack_thumbnail
343  
344 Type: might_have
345  
346 Related object: L<Schema::RackTables::0_20_0::Result::RackThumbnail>
347  
348 =cut
349  
350 __PACKAGE__->might_have(
351 "rack_thumbnail",
352 "Schema::RackTables::0_20_0::Result::RackThumbnail",
353 { "foreign.rack_id" => "self.id" },
354 { cascade_copy => 0, cascade_delete => 0 },
355 );
356  
357 =head2 vlanswitch
358  
359 Type: might_have
360  
361 Related object: L<Schema::RackTables::0_20_0::Result::VLANSwitch>
362  
363 =cut
364  
365 __PACKAGE__->might_have(
366 "vlanswitch",
367 "Schema::RackTables::0_20_0::Result::VLANSwitch",
368 { "foreign.object_id" => "self.id" },
369 { cascade_copy => 0, cascade_delete => 0 },
370 );
371  
372  
373 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:57
374 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xq0a1c/iFQyhoOPe10Fysw
375  
376  
377 # You can replace this text with custom code or comments, and it will be preserved on regeneration
378 1;