RackTables/0_20_1/Result/VLANDescription.pm untested

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