blib/lib/RackTables/Schema/Result/RackSpace.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/RackTables/Schema/Result/RackRow.pm ↑ Summary blib/lib/RackTables/Schema/Result/Script.pm »
1 package RackTables::Schema::Result::RackSpace;
2  
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use MooseX::NonMoose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 extends 'DBIx::Class::Core';
13  
14  
15 =head1 NAME
16  
17 RackTables::Schema::Result::RackSpace
18  
19 =cut
20  
21 1 __PACKAGE__->table("RackSpace");
22  
23 =head1 ACCESSORS
24  
25 =head2 rack_id
26  
27 data_type: 'integer'
28 default_value: 0
29 extra: {unsigned => 1}
30 is_foreign_key: 1
31 is_nullable: 0
32  
33 =head2 unit_no
34  
35 data_type: 'integer'
36 default_value: 0
37 extra: {unsigned => 1}
38 is_nullable: 0
39  
40 =head2 atom
41  
42 data_type: 'enum'
43 default_value: 'interior'
44 extra: {list => ["front","interior","rear"]}
45 is_nullable: 0
46  
47 =head2 state
48  
49 data_type: 'enum'
50 default_value: 'A'
51 extra: {list => ["A","U","T","W"]}
52 is_nullable: 0
53  
54 =head2 object_id
55  
56 data_type: 'integer'
57 extra: {unsigned => 1}
58 is_foreign_key: 1
59 is_nullable: 1
60  
61 =cut
62  
63 1 __PACKAGE__->add_columns(
64 "rack_id",
65 {
66 data_type => "integer",
67 default_value => 0,
68 extra => { unsigned => 1 },
69 is_foreign_key => 1,
70 is_nullable => 0,
71 },
72 "unit_no",
73 {
74 data_type => "integer",
75 default_value => 0,
76 extra => { unsigned => 1 },
77 is_nullable => 0,
78 },
79 "atom",
80 {
81 data_type => "enum",
82 default_value => "interior",
83 extra => { list => ["front", "interior", "rear"] },
84 is_nullable => 0,
85 },
86 "state",
87 {
88 data_type => "enum",
89 default_value => "A",
90 extra => { list => ["A", "U", "T", "W"] },
91 is_nullable => 0,
92 },
93 "object_id",
94 {
95 data_type => "integer",
96 extra => { unsigned => 1 },
97 is_foreign_key => 1,
98 is_nullable => 1,
99 },
100 );
101 1 __PACKAGE__->set_primary_key("rack_id", "unit_no", "atom");
102  
103 =head1 RELATIONS
104  
105 =head2 rack
106  
107 Type: belongs_to
108  
109 Related object: L<RackTables::Schema::Result::Rack>
110  
111 =cut
112  
113 1 __PACKAGE__->belongs_to(
114 "rack",
115 "RackTables::Schema::Result::Rack",
116 { id => "rack_id" },
117 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
118 );
119  
120 =head2 object
121  
122 Type: belongs_to
123  
124 Related object: L<RackTables::Schema::Result::RackObject>
125  
126 =cut
127  
128 1 __PACKAGE__->belongs_to(
129 "object",
130 "RackTables::Schema::Result::RackObject",
131 { id => "object_id" },
132 {
133 is_deferrable => 1,
134 join_type => "LEFT",
135 on_delete => "CASCADE",
136 on_update => "CASCADE",
137 },
138 );
139  
140  
141 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
142 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:B8qFZhzRw3OjGazgwU1/tw
143  
144  
145 # You can replace this text with custom code or comments, and it will be preserved on regeneration
146 1 __PACKAGE__->meta->make_immutable;
147 1 1;
« blib/lib/RackTables/Schema/Result/RackRow.pm ↑ Summary blib/lib/RackTables/Schema/Result/Script.pm »