RackTables/0_20_9/Result/VLANSwitch.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« RackTables/0_20_9/Result/VLANSTRule.pm ↑ Summary RackTables/0_20_9/Result/VLANSwitchTemplate.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_20_9::Result::VLANSwitch;
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_9::Result::VLANSwitch
10  
11 =cut
12  
13 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
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 1 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<VLANSwitch>
31  
32 =cut
33  
34 1 __PACKAGE__->table("VLANSwitch");
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: 0
44  
45 =head2 domain_id
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_foreign_key: 1
50 is_nullable: 0
51  
52 =head2 template_id
53  
54 data_type: 'integer'
55 extra: {unsigned => 1}
56 is_foreign_key: 1
57 is_nullable: 0
58  
59 =head2 mutex_rev
60  
61 data_type: 'integer'
62 default_value: 0
63 extra: {unsigned => 1}
64 is_nullable: 0
65  
66 =head2 out_of_sync
67  
68 data_type: 'enum'
69 default_value: 'yes'
70 extra: {list => ["yes","no"]}
71 is_nullable: 0
72  
73 =head2 last_errno
74  
75 data_type: 'integer'
76 default_value: 0
77 extra: {unsigned => 1}
78 is_nullable: 0
79  
80 =head2 last_change
81  
82 data_type: 'timestamp'
83 datetime_undef_if_invalid: 1
84 default_value: '0000-00-00 00:00:00'
85 is_nullable: 0
86  
87 =head2 last_push_started
88  
89 data_type: 'timestamp'
90 datetime_undef_if_invalid: 1
91 default_value: '0000-00-00 00:00:00'
92 is_nullable: 0
93  
94 =head2 last_push_finished
95  
96 data_type: 'timestamp'
97 datetime_undef_if_invalid: 1
98 default_value: '0000-00-00 00:00:00'
99 is_nullable: 0
100  
101 =head2 last_error_ts
102  
103 data_type: 'timestamp'
104 datetime_undef_if_invalid: 1
105 default_value: '0000-00-00 00:00:00'
106 is_nullable: 0
107  
108 =cut
109  
110 1 __PACKAGE__->add_columns(
111 "object_id",
112 {
113 data_type => "integer",
114 extra => { unsigned => 1 },
115 is_foreign_key => 1,
116 is_nullable => 0,
117 },
118 "domain_id",
119 {
120 data_type => "integer",
121 extra => { unsigned => 1 },
122 is_foreign_key => 1,
123 is_nullable => 0,
124 },
125 "template_id",
126 {
127 data_type => "integer",
128 extra => { unsigned => 1 },
129 is_foreign_key => 1,
130 is_nullable => 0,
131 },
132 "mutex_rev",
133 {
134 data_type => "integer",
135 default_value => 0,
136 extra => { unsigned => 1 },
137 is_nullable => 0,
138 },
139 "out_of_sync",
140 {
141 data_type => "enum",
142 default_value => "yes",
143 extra => { list => ["yes", "no"] },
144 is_nullable => 0,
145 },
146 "last_errno",
147 {
148 data_type => "integer",
149 default_value => 0,
150 extra => { unsigned => 1 },
151 is_nullable => 0,
152 },
153 "last_change",
154 {
155 data_type => "timestamp",
156 datetime_undef_if_invalid => 1,
157 default_value => "0000-00-00 00:00:00",
158 is_nullable => 0,
159 },
160 "last_push_started",
161 {
162 data_type => "timestamp",
163 datetime_undef_if_invalid => 1,
164 default_value => "0000-00-00 00:00:00",
165 is_nullable => 0,
166 },
167 "last_push_finished",
168 {
169 data_type => "timestamp",
170 datetime_undef_if_invalid => 1,
171 default_value => "0000-00-00 00:00:00",
172 is_nullable => 0,
173 },
174 "last_error_ts",
175 {
176 data_type => "timestamp",
177 datetime_undef_if_invalid => 1,
178 default_value => "0000-00-00 00:00:00",
179 is_nullable => 0,
180 },
181 );
182  
183 =head1 UNIQUE CONSTRAINTS
184  
185 =head2 C<object_id>
186  
187 =over 4
188  
189 =item * L</object_id>
190  
191 =back
192  
193 =cut
194  
195 1 __PACKAGE__->add_unique_constraint("object_id", ["object_id"]);
196  
197 =head1 RELATIONS
198  
199 =head2 domain
200  
201 Type: belongs_to
202  
203 Related object: L<Schema::RackTables::0_20_9::Result::VLANDomain>
204  
205 =cut
206  
207 1 __PACKAGE__->belongs_to(
208 "domain",
209 "Schema::RackTables::0_20_9::Result::VLANDomain",
210 { id => "domain_id" },
211 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
212 );
213  
214 =head2 object
215  
216 Type: belongs_to
217  
218 Related object: L<Schema::RackTables::0_20_9::Result::Object>
219  
220 =cut
221  
222 1 __PACKAGE__->belongs_to(
223 "object",
224 "Schema::RackTables::0_20_9::Result::Object",
225 { id => "object_id" },
226 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
227 );
228  
229 =head2 template
230  
231 Type: belongs_to
232  
233 Related object: L<Schema::RackTables::0_20_9::Result::VLANSwitchTemplate>
234  
235 =cut
236  
237 1 __PACKAGE__->belongs_to(
238 "template",
239 "Schema::RackTables::0_20_9::Result::VLANSwitchTemplate",
240 { id => "template_id" },
241 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
242 );
243  
244  
245 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:01
246 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fzANTNcyle8UxZVR0Q+tWA
247  
248  
249 # You can replace this text with custom code or comments, and it will be preserved on regeneration
250 1 1;
« RackTables/0_20_9/Result/VLANSTRule.pm ↑ Summary RackTables/0_20_9/Result/VLANSwitchTemplate.pm »