RackTables/0_20_6/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_20_6::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_20_6::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 is_assignable
53  
54 data_type: 'enum'
55 default_value: 'yes'
56 extra: {list => ["yes","no"]}
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 "is_assignable",
83 {
84 data_type => "enum",
85 default_value => "yes",
86 extra => { list => ["yes", "no"] },
87 is_nullable => 0,
88 },
89 "tag",
90 { data_type => "char", is_nullable => 1, size => 255 },
91 );
92  
93 =head1 PRIMARY KEY
94  
95 =over 4
96  
97 =item * L</id>
98  
99 =back
100  
101 =cut
102  
103 __PACKAGE__->set_primary_key("id");
104  
105 =head1 UNIQUE CONSTRAINTS
106  
107 =head2 C<tag>
108  
109 =over 4
110  
111 =item * L</tag>
112  
113 =back
114  
115 =cut
116  
117 __PACKAGE__->add_unique_constraint("tag", ["tag"]);
118  
119 =head1 RELATIONS
120  
121 =head2 parent
122  
123 Type: belongs_to
124  
125 Related object: L<Schema::RackTables::0_20_6::Result::TagTree>
126  
127 =cut
128  
129 __PACKAGE__->belongs_to(
130 "parent",
131 "Schema::RackTables::0_20_6::Result::TagTree",
132 { id => "parent_id" },
133 {
134 is_deferrable => 1,
135 join_type => "LEFT",
136 on_delete => "RESTRICT",
137 on_update => "RESTRICT",
138 },
139 );
140  
141 =head2 tag_storages
142  
143 Type: has_many
144  
145 Related object: L<Schema::RackTables::0_20_6::Result::TagStorage>
146  
147 =cut
148  
149 __PACKAGE__->has_many(
150 "tag_storages",
151 "Schema::RackTables::0_20_6::Result::TagStorage",
152 {
153 "foreign.tag_id" => "self.id",
154 "foreign.tag_is_assignable" => "self.is_assignable",
155 },
156 { cascade_copy => 0, cascade_delete => 0 },
157 );
158  
159 =head2 tag_trees
160  
161 Type: has_many
162  
163 Related object: L<Schema::RackTables::0_20_6::Result::TagTree>
164  
165 =cut
166  
167 __PACKAGE__->has_many(
168 "tag_trees",
169 "Schema::RackTables::0_20_6::Result::TagTree",
170 { "foreign.parent_id" => "self.id" },
171 { cascade_copy => 0, cascade_delete => 0 },
172 );
173  
174  
175 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:20
176 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QtkMkh9NiZCscQOz/ah72Q
177  
178  
179 # You can replace this text with custom code or comments, and it will be preserved on regeneration
180 1;