RackTables/0_18_1/Result/RackObject.pm untested

filter: Statementstmt 0.0% 0 / 41 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 45 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_18_1::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_18_1::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 barcode
58  
59 data_type: 'char'
60 is_nullable: 1
61 size: 16
62  
63 =head2 objtype_id
64  
65 data_type: 'integer'
66 default_value: 1
67 extra: {unsigned => 1}
68 is_nullable: 0
69  
70 =head2 asset_no
71  
72 data_type: 'char'
73 is_nullable: 1
74 size: 64
75  
76 =head2 has_problems
77  
78 data_type: 'enum'
79 default_value: 'no'
80 extra: {list => ["yes","no"]}
81 is_nullable: 0
82  
83 =head2 comment
84  
85 data_type: 'text'
86 is_nullable: 1
87  
88 =cut
89  
90 __PACKAGE__->add_columns(
91 "id",
92 {
93 data_type => "integer",
94 extra => { unsigned => 1 },
95 is_auto_increment => 1,
96 is_nullable => 0,
97 },
98 "name",
99 { data_type => "char", is_nullable => 1, size => 255 },
100 "label",
101 { data_type => "char", is_nullable => 1, size => 255 },
102 "barcode",
103 { data_type => "char", is_nullable => 1, size => 16 },
104 "objtype_id",
105 {
106 data_type => "integer",
107 default_value => 1,
108 extra => { unsigned => 1 },
109 is_nullable => 0,
110 },
111 "asset_no",
112 { data_type => "char", is_nullable => 1, size => 64 },
113 "has_problems",
114 {
115 data_type => "enum",
116 default_value => "no",
117 extra => { list => ["yes", "no"] },
118 is_nullable => 0,
119 },
120 "comment",
121 { data_type => "text", is_nullable => 1 },
122 );
123  
124 =head1 PRIMARY KEY
125  
126 =over 4
127  
128 =item * L</id>
129  
130 =back
131  
132 =cut
133  
134 __PACKAGE__->set_primary_key("id");
135  
136 =head1 UNIQUE CONSTRAINTS
137  
138 =head2 C<RackObject_asset_no>
139  
140 =over 4
141  
142 =item * L</asset_no>
143  
144 =back
145  
146 =cut
147  
148 __PACKAGE__->add_unique_constraint("RackObject_asset_no", ["asset_no"]);
149  
150 =head2 C<barcode>
151  
152 =over 4
153  
154 =item * L</barcode>
155  
156 =back
157  
158 =cut
159  
160 __PACKAGE__->add_unique_constraint("barcode", ["barcode"]);
161  
162 =head2 C<name>
163  
164 =over 4
165  
166 =item * L</name>
167  
168 =back
169  
170 =cut
171  
172 __PACKAGE__->add_unique_constraint("name", ["name"]);
173  
174 =head1 RELATIONS
175  
176 =head2 attribute_values
177  
178 Type: has_many
179  
180 Related object: L<Schema::RackTables::0_18_1::Result::AttributeValue>
181  
182 =cut
183  
184 __PACKAGE__->has_many(
185 "attribute_values",
186 "Schema::RackTables::0_18_1::Result::AttributeValue",
187 { "foreign.object_id" => "self.id" },
188 { cascade_copy => 0, cascade_delete => 0 },
189 );
190  
191 =head2 cached_pvms
192  
193 Type: has_many
194  
195 Related object: L<Schema::RackTables::0_18_1::Result::CachedPVM>
196  
197 =cut
198  
199 __PACKAGE__->has_many(
200 "cached_pvms",
201 "Schema::RackTables::0_18_1::Result::CachedPVM",
202 { "foreign.object_id" => "self.id" },
203 { cascade_copy => 0, cascade_delete => 0 },
204 );
205  
206 =head2 ipv4_lbs
207  
208 Type: has_many
209  
210 Related object: L<Schema::RackTables::0_18_1::Result::IPv4LB>
211  
212 =cut
213  
214 __PACKAGE__->has_many(
215 "ipv4_lbs",
216 "Schema::RackTables::0_18_1::Result::IPv4LB",
217 { "foreign.object_id" => "self.id" },
218 { cascade_copy => 0, cascade_delete => 0 },
219 );
220  
221 =head2 ipv4_nats
222  
223 Type: has_many
224  
225 Related object: L<Schema::RackTables::0_18_1::Result::IPv4NAT>
226  
227 =cut
228  
229 __PACKAGE__->has_many(
230 "ipv4_nats",
231 "Schema::RackTables::0_18_1::Result::IPv4NAT",
232 { "foreign.object_id" => "self.id" },
233 { cascade_copy => 0, cascade_delete => 0 },
234 );
235  
236 =head2 mount_operations
237  
238 Type: has_many
239  
240 Related object: L<Schema::RackTables::0_18_1::Result::MountOperation>
241  
242 =cut
243  
244 __PACKAGE__->has_many(
245 "mount_operations",
246 "Schema::RackTables::0_18_1::Result::MountOperation",
247 { "foreign.object_id" => "self.id" },
248 { cascade_copy => 0, cascade_delete => 0 },
249 );
250  
251 =head2 ports
252  
253 Type: has_many
254  
255 Related object: L<Schema::RackTables::0_18_1::Result::Port>
256  
257 =cut
258  
259 __PACKAGE__->has_many(
260 "ports",
261 "Schema::RackTables::0_18_1::Result::Port",
262 { "foreign.object_id" => "self.id" },
263 { cascade_copy => 0, cascade_delete => 0 },
264 );
265  
266 =head2 rack_object_histories
267  
268 Type: has_many
269  
270 Related object: L<Schema::RackTables::0_18_1::Result::RackObjectHistory>
271  
272 =cut
273  
274 __PACKAGE__->has_many(
275 "rack_object_histories",
276 "Schema::RackTables::0_18_1::Result::RackObjectHistory",
277 { "foreign.id" => "self.id" },
278 { cascade_copy => 0, cascade_delete => 0 },
279 );
280  
281 =head2 rack_spaces
282  
283 Type: has_many
284  
285 Related object: L<Schema::RackTables::0_18_1::Result::RackSpace>
286  
287 =cut
288  
289 __PACKAGE__->has_many(
290 "rack_spaces",
291 "Schema::RackTables::0_18_1::Result::RackSpace",
292 { "foreign.object_id" => "self.id" },
293 { cascade_copy => 0, cascade_delete => 0 },
294 );
295  
296 =head2 vlanswitch
297  
298 Type: might_have
299  
300 Related object: L<Schema::RackTables::0_18_1::Result::VLANSwitch>
301  
302 =cut
303  
304 __PACKAGE__->might_have(
305 "vlanswitch",
306 "Schema::RackTables::0_18_1::Result::VLANSwitch",
307 { "foreign.object_id" => "self.id" },
308 { cascade_copy => 0, cascade_delete => 0 },
309 );
310  
311  
312 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:39
313 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cn92a8w0nlaKt9XYpaeLKg
314  
315  
316 # You can replace this text with custom code or comments, and it will be preserved on regeneration
317 1;