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