RackTables/0_19_0/Result/RackObject.pm untested

filter: Statementstmt 0.0% 0 / 45 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 49 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_19_0::Result::RackObject;
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_19_0::Result::RackObject
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<RackObject>
31  
32 =cut
33  
34 __PACKAGE__->table("RackObject");
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<RackObject_asset_no>
131  
132 =over 4
133  
134 =item * L</asset_no>
135  
136 =back
137  
138 =cut
139  
140 __PACKAGE__->add_unique_constraint("RackObject_asset_no", ["asset_no"]);
141  
142 =head2 C<name>
143  
144 =over 4
145  
146 =item * L</name>
147  
148 =back
149  
150 =cut
151  
152 __PACKAGE__->add_unique_constraint("name", ["name"]);
153  
154 =head1 RELATIONS
155  
156 =head2 attribute_values
157  
158 Type: has_many
159  
160 Related object: L<Schema::RackTables::0_19_0::Result::AttributeValue>
161  
162 =cut
163  
164 __PACKAGE__->has_many(
165 "attribute_values",
166 "Schema::RackTables::0_19_0::Result::AttributeValue",
167 { "foreign.object_id" => "self.id" },
168 { cascade_copy => 0, cascade_delete => 0 },
169 );
170  
171 =head2 cached_pvms
172  
173 Type: has_many
174  
175 Related object: L<Schema::RackTables::0_19_0::Result::CachedPVM>
176  
177 =cut
178  
179 __PACKAGE__->has_many(
180 "cached_pvms",
181 "Schema::RackTables::0_19_0::Result::CachedPVM",
182 { "foreign.object_id" => "self.id" },
183 { cascade_copy => 0, cascade_delete => 0 },
184 );
185  
186 =head2 ipv4_allocations
187  
188 Type: has_many
189  
190 Related object: L<Schema::RackTables::0_19_0::Result::IPv4Allocation>
191  
192 =cut
193  
194 __PACKAGE__->has_many(
195 "ipv4_allocations",
196 "Schema::RackTables::0_19_0::Result::IPv4Allocation",
197 { "foreign.object_id" => "self.id" },
198 { cascade_copy => 0, cascade_delete => 0 },
199 );
200  
201 =head2 ipv4_lbs
202  
203 Type: has_many
204  
205 Related object: L<Schema::RackTables::0_19_0::Result::IPv4LB>
206  
207 =cut
208  
209 __PACKAGE__->has_many(
210 "ipv4_lbs",
211 "Schema::RackTables::0_19_0::Result::IPv4LB",
212 { "foreign.object_id" => "self.id" },
213 { cascade_copy => 0, cascade_delete => 0 },
214 );
215  
216 =head2 ipv4_nats
217  
218 Type: has_many
219  
220 Related object: L<Schema::RackTables::0_19_0::Result::IPv4NAT>
221  
222 =cut
223  
224 __PACKAGE__->has_many(
225 "ipv4_nats",
226 "Schema::RackTables::0_19_0::Result::IPv4NAT",
227 { "foreign.object_id" => "self.id" },
228 { cascade_copy => 0, cascade_delete => 0 },
229 );
230  
231 =head2 ipv6_allocations
232  
233 Type: has_many
234  
235 Related object: L<Schema::RackTables::0_19_0::Result::IPv6Allocation>
236  
237 =cut
238  
239 __PACKAGE__->has_many(
240 "ipv6_allocations",
241 "Schema::RackTables::0_19_0::Result::IPv6Allocation",
242 { "foreign.object_id" => "self.id" },
243 { cascade_copy => 0, cascade_delete => 0 },
244 );
245  
246 =head2 mount_operations
247  
248 Type: has_many
249  
250 Related object: L<Schema::RackTables::0_19_0::Result::MountOperation>
251  
252 =cut
253  
254 __PACKAGE__->has_many(
255 "mount_operations",
256 "Schema::RackTables::0_19_0::Result::MountOperation",
257 { "foreign.object_id" => "self.id" },
258 { cascade_copy => 0, cascade_delete => 0 },
259 );
260  
261 =head2 object_logs
262  
263 Type: has_many
264  
265 Related object: L<Schema::RackTables::0_19_0::Result::ObjectLog>
266  
267 =cut
268  
269 __PACKAGE__->has_many(
270 "object_logs",
271 "Schema::RackTables::0_19_0::Result::ObjectLog",
272 { "foreign.object_id" => "self.id" },
273 { cascade_copy => 0, cascade_delete => 0 },
274 );
275  
276 =head2 ports
277  
278 Type: has_many
279  
280 Related object: L<Schema::RackTables::0_19_0::Result::Port>
281  
282 =cut
283  
284 __PACKAGE__->has_many(
285 "ports",
286 "Schema::RackTables::0_19_0::Result::Port",
287 { "foreign.object_id" => "self.id" },
288 { cascade_copy => 0, cascade_delete => 0 },
289 );
290  
291 =head2 rack_object_histories
292  
293 Type: has_many
294  
295 Related object: L<Schema::RackTables::0_19_0::Result::RackObjectHistory>
296  
297 =cut
298  
299 __PACKAGE__->has_many(
300 "rack_object_histories",
301 "Schema::RackTables::0_19_0::Result::RackObjectHistory",
302 { "foreign.id" => "self.id" },
303 { cascade_copy => 0, cascade_delete => 0 },
304 );
305  
306 =head2 rack_spaces
307  
308 Type: has_many
309  
310 Related object: L<Schema::RackTables::0_19_0::Result::RackSpace>
311  
312 =cut
313  
314 __PACKAGE__->has_many(
315 "rack_spaces",
316 "Schema::RackTables::0_19_0::Result::RackSpace",
317 { "foreign.object_id" => "self.id" },
318 { cascade_copy => 0, cascade_delete => 0 },
319 );
320  
321 =head2 vlanswitch
322  
323 Type: might_have
324  
325 Related object: L<Schema::RackTables::0_19_0::Result::VLANSwitch>
326  
327 =cut
328  
329 __PACKAGE__->might_have(
330 "vlanswitch",
331 "Schema::RackTables::0_19_0::Result::VLANSwitch",
332 { "foreign.object_id" => "self.id" },
333 { cascade_copy => 0, cascade_delete => 0 },
334 );
335  
336  
337 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:01
338 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:P0i/kshA4Hsv19/tqQ7otg
339  
340  
341 # You can replace this text with custom code or comments, and it will be preserved on regeneration
342 1;