RackTables/0_18_2/Result/RackSpace.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 23 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_2::Result::RackSpace;
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_2::Result::RackSpace
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<RackSpace>
31  
32 =cut
33  
34 __PACKAGE__->table("RackSpace");
35  
36 =head1 ACCESSORS
37  
38 =head2 rack_id
39  
40 data_type: 'integer'
41 default_value: 0
42 extra: {unsigned => 1}
43 is_nullable: 0
44  
45 =head2 unit_no
46  
47 data_type: 'integer'
48 default_value: 0
49 extra: {unsigned => 1}
50 is_nullable: 0
51  
52 =head2 atom
53  
54 data_type: 'enum'
55 default_value: 'interior'
56 extra: {list => ["front","interior","rear"]}
57 is_nullable: 0
58  
59 =head2 state
60  
61 data_type: 'enum'
62 default_value: 'A'
63 extra: {list => ["A","U","T","W"]}
64 is_nullable: 0
65  
66 =head2 object_id
67  
68 data_type: 'integer'
69 extra: {unsigned => 1}
70 is_foreign_key: 1
71 is_nullable: 1
72  
73 =cut
74  
75 __PACKAGE__->add_columns(
76 "rack_id",
77 {
78 data_type => "integer",
79 default_value => 0,
80 extra => { unsigned => 1 },
81 is_nullable => 0,
82 },
83 "unit_no",
84 {
85 data_type => "integer",
86 default_value => 0,
87 extra => { unsigned => 1 },
88 is_nullable => 0,
89 },
90 "atom",
91 {
92 data_type => "enum",
93 default_value => "interior",
94 extra => { list => ["front", "interior", "rear"] },
95 is_nullable => 0,
96 },
97 "state",
98 {
99 data_type => "enum",
100 default_value => "A",
101 extra => { list => ["A", "U", "T", "W"] },
102 is_nullable => 0,
103 },
104 "object_id",
105 {
106 data_type => "integer",
107 extra => { unsigned => 1 },
108 is_foreign_key => 1,
109 is_nullable => 1,
110 },
111 );
112  
113 =head1 PRIMARY KEY
114  
115 =over 4
116  
117 =item * L</rack_id>
118  
119 =item * L</unit_no>
120  
121 =item * L</atom>
122  
123 =back
124  
125 =cut
126  
127 __PACKAGE__->set_primary_key("rack_id", "unit_no", "atom");
128  
129 =head1 RELATIONS
130  
131 =head2 object
132  
133 Type: belongs_to
134  
135 Related object: L<Schema::RackTables::0_18_2::Result::RackObject>
136  
137 =cut
138  
139 __PACKAGE__->belongs_to(
140 "object",
141 "Schema::RackTables::0_18_2::Result::RackObject",
142 { id => "object_id" },
143 {
144 is_deferrable => 1,
145 join_type => "LEFT",
146 on_delete => "CASCADE",
147 on_update => "RESTRICT",
148 },
149 );
150  
151  
152 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:33
153 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2sHY2JfYWBySZXfuyjHGkA
154  
155  
156 # You can replace this text with custom code or comments, and it will be preserved on regeneration
157 1;