RackTables/0_20_2/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_2::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_2::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","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 "ipv6net",
93 "location",
94 "object",
95 "rack",
96 "user",
97 "vst",
98 ],
99 },
100 is_nullable => 0,
101 },
102 "entity_id",
103 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
104 "tag_id",
105 {
106 data_type => "integer",
107 default_value => 0,
108 extra => { unsigned => 1 },
109 is_foreign_key => 1,
110 is_nullable => 0,
111 },
112 "tag_is_assignable",
113 {
114 data_type => "enum",
115 default_value => "yes",
116 extra => { list => ["yes", "no"] },
117 is_foreign_key => 1,
118 is_nullable => 0,
119 },
120 "user",
121 { data_type => "char", is_nullable => 1, size => 64 },
122 "date",
123 {
124 data_type => "datetime",
125 datetime_undef_if_invalid => 1,
126 is_nullable => 1,
127 },
128 );
129  
130 =head1 UNIQUE CONSTRAINTS
131  
132 =head2 C<entity_tag>
133  
134 =over 4
135  
136 =item * L</entity_realm>
137  
138 =item * L</entity_id>
139  
140 =item * L</tag_id>
141  
142 =back
143  
144 =cut
145  
146 __PACKAGE__->add_unique_constraint("entity_tag", ["entity_realm", "entity_id", "tag_id"]);
147  
148 =head1 RELATIONS
149  
150 =head2 tag_tree
151  
152 Type: belongs_to
153  
154 Related object: L<Schema::RackTables::0_20_2::Result::TagTree>
155  
156 =cut
157  
158 __PACKAGE__->belongs_to(
159 "tag_tree",
160 "Schema::RackTables::0_20_2::Result::TagTree",
161 { id => "tag_id", is_assignable => "tag_is_assignable" },
162 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
163 );
164  
165  
166 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:40
167 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mCAN4zHf4wk8ZvIoAOLEzg
168  
169  
170 # You can replace this text with custom code or comments, and it will be preserved on regeneration
171 1;