RackTables/0_19_13/Result/AttributeValue.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_19_13::Result::AttributeValue;
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_13::Result::AttributeValue
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<AttributeValue>
31  
32 =cut
33  
34 __PACKAGE__->table("AttributeValue");
35  
36 =head1 ACCESSORS
37  
38 =head2 object_id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_foreign_key: 1
43 is_nullable: 1
44  
45 =head2 object_tid
46  
47 data_type: 'integer'
48 default_value: 0
49 extra: {unsigned => 1}
50 is_foreign_key: 1
51 is_nullable: 0
52  
53 =head2 attr_id
54  
55 data_type: 'integer'
56 extra: {unsigned => 1}
57 is_foreign_key: 1
58 is_nullable: 1
59  
60 =head2 string_value
61  
62 data_type: 'char'
63 is_nullable: 1
64 size: 255
65  
66 =head2 uint_value
67  
68 data_type: 'integer'
69 extra: {unsigned => 1}
70 is_nullable: 1
71  
72 =head2 float_value
73  
74 data_type: 'float'
75 is_nullable: 1
76  
77 =cut
78  
79 __PACKAGE__->add_columns(
80 "object_id",
81 {
82 data_type => "integer",
83 extra => { unsigned => 1 },
84 is_foreign_key => 1,
85 is_nullable => 1,
86 },
87 "object_tid",
88 {
89 data_type => "integer",
90 default_value => 0,
91 extra => { unsigned => 1 },
92 is_foreign_key => 1,
93 is_nullable => 0,
94 },
95 "attr_id",
96 {
97 data_type => "integer",
98 extra => { unsigned => 1 },
99 is_foreign_key => 1,
100 is_nullable => 1,
101 },
102 "string_value",
103 { data_type => "char", is_nullable => 1, size => 255 },
104 "uint_value",
105 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 },
106 "float_value",
107 { data_type => "float", is_nullable => 1 },
108 );
109  
110 =head1 UNIQUE CONSTRAINTS
111  
112 =head2 C<object_id>
113  
114 =over 4
115  
116 =item * L</object_id>
117  
118 =item * L</attr_id>
119  
120 =back
121  
122 =cut
123  
124 __PACKAGE__->add_unique_constraint("object_id", ["object_id", "attr_id"]);
125  
126 =head1 RELATIONS
127  
128 =head2 attribute_map
129  
130 Type: belongs_to
131  
132 Related object: L<Schema::RackTables::0_19_13::Result::AttributeMap>
133  
134 =cut
135  
136 __PACKAGE__->belongs_to(
137 "attribute_map",
138 "Schema::RackTables::0_19_13::Result::AttributeMap",
139 { attr_id => "attr_id", objtype_id => "object_tid" },
140 {
141 is_deferrable => 1,
142 join_type => "LEFT",
143 on_delete => "RESTRICT",
144 on_update => "RESTRICT",
145 },
146 );
147  
148 =head2 rack_object
149  
150 Type: belongs_to
151  
152 Related object: L<Schema::RackTables::0_19_13::Result::RackObject>
153  
154 =cut
155  
156 __PACKAGE__->belongs_to(
157 "rack_object",
158 "Schema::RackTables::0_19_13::Result::RackObject",
159 { id => "object_id", objtype_id => "object_tid" },
160 {
161 is_deferrable => 1,
162 join_type => "LEFT",
163 on_delete => "CASCADE",
164 on_update => "CASCADE",
165 },
166 );
167  
168  
169 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:02:40
170 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:V5fmL4TwShwxkXmURR8kCA
171  
172  
173 # You can replace this text with custom code or comments, and it will be preserved on regeneration
174 1;