RackTables/0_20_7/Result/TagStorage.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 24 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_20_7::Result::TagStorage;
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_20_7::Result::TagStorage
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<TagStorage>
31  
32 =cut
33  
34 __PACKAGE__->table("TagStorage");
35  
36 =head1 ACCESSORS
37  
38 =head2 entity_realm
39  
40 data_type: 'enum'
41 default_value: 'object'
42 extra: {list => ["file","ipv4net","ipv4rspool","ipv4vs","ipvs","ipv6net","location","object","rack","user","vst"]}
43 is_nullable: 0
44  
45 =head2 entity_id
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_nullable: 0
50  
51 =head2 tag_id
52  
53 data_type: 'integer'
54 default_value: 0
55 extra: {unsigned => 1}
56 is_foreign_key: 1
57 is_nullable: 0
58  
59 =head2 tag_is_assignable
60  
61 data_type: 'enum'
62 default_value: 'yes'
63 extra: {list => ["yes","no"]}
64 is_foreign_key: 1
65 is_nullable: 0
66  
67 =head2 user
68  
69 data_type: 'char'
70 is_nullable: 1
71 size: 64
72  
73 =head2 date
74  
75 data_type: 'datetime'
76 datetime_undef_if_invalid: 1
77 is_nullable: 1
78  
79 =cut
80  
81 __PACKAGE__->add_columns(
82 "entity_realm",
83 {
84 data_type => "enum",
85 default_value => "object",
86 extra => {
87 list => [
88 "file",
89 "ipv4net",
90 "ipv4rspool",
91 "ipv4vs",
92 "ipvs",
93 "ipv6net",
94 "location",
95 "object",
96 "rack",
97 "user",
98 "vst",
99 ],
100 },
101 is_nullable => 0,
102 },
103 "entity_id",
104 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
105 "tag_id",
106 {
107 data_type => "integer",
108 default_value => 0,
109 extra => { unsigned => 1 },
110 is_foreign_key => 1,
111 is_nullable => 0,
112 },
113 "tag_is_assignable",
114 {
115 data_type => "enum",
116 default_value => "yes",
117 extra => { list => ["yes", "no"] },
118 is_foreign_key => 1,
119 is_nullable => 0,
120 },
121 "user",
122 { data_type => "char", is_nullable => 1, size => 64 },
123 "date",
124 {
125 data_type => "datetime",
126 datetime_undef_if_invalid => 1,
127 is_nullable => 1,
128 },
129 );
130  
131 =head1 UNIQUE CONSTRAINTS
132  
133 =head2 C<entity_tag>
134  
135 =over 4
136  
137 =item * L</entity_realm>
138  
139 =item * L</entity_id>
140  
141 =item * L</tag_id>
142  
143 =back
144  
145 =cut
146  
147 __PACKAGE__->add_unique_constraint("entity_tag", ["entity_realm", "entity_id", "tag_id"]);
148  
149 =head1 RELATIONS
150  
151 =head2 tag_tree
152  
153 Type: belongs_to
154  
155 Related object: L<Schema::RackTables::0_20_7::Result::TagTree>
156  
157 =cut
158  
159 __PACKAGE__->belongs_to(
160 "tag_tree",
161 "Schema::RackTables::0_20_7::Result::TagTree",
162 { id => "tag_id", is_assignable => "tag_is_assignable" },
163 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
164 );
165  
166  
167 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:14
168 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rSnURp3GthR623XVcT1daA
169  
170  
171 # You can replace this text with custom code or comments, and it will be preserved on regeneration
172 1;