RackTables/0_17_5/Result/TagTree.pm untested

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