RackTables/0_20_6/Result/VLANIPv6.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 23 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::VLANIPv6;
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::VLANIPv6
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<VLANIPv6>
31  
32 =cut
33  
34 __PACKAGE__->table("VLANIPv6");
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 extra: {unsigned => 1}
49 is_foreign_key: 1
50 is_nullable: 0
51  
52 =head2 ipv6net_id
53  
54 data_type: 'integer'
55 extra: {unsigned => 1}
56 is_foreign_key: 1
57 is_nullable: 0
58  
59 =cut
60  
61 __PACKAGE__->add_columns(
62 "domain_id",
63 {
64 data_type => "integer",
65 extra => { unsigned => 1 },
66 is_foreign_key => 1,
67 is_nullable => 0,
68 },
69 "vlan_id",
70 {
71 data_type => "integer",
72 extra => { unsigned => 1 },
73 is_foreign_key => 1,
74 is_nullable => 0,
75 },
76 "ipv6net_id",
77 {
78 data_type => "integer",
79 extra => { unsigned => 1 },
80 is_foreign_key => 1,
81 is_nullable => 0,
82 },
83 );
84  
85 =head1 UNIQUE CONSTRAINTS
86  
87 =head2 C<network-domain-vlan>
88  
89 =over 4
90  
91 =item * L</ipv6net_id>
92  
93 =item * L</domain_id>
94  
95 =item * L</vlan_id>
96  
97 =back
98  
99 =cut
100  
101 __PACKAGE__->add_unique_constraint("network-domain-vlan", ["ipv6net_id", "domain_id", "vlan_id"]);
102  
103 =head1 RELATIONS
104  
105 =head2 ipv6net
106  
107 Type: belongs_to
108  
109 Related object: L<Schema::RackTables::0_20_6::Result::IPv6Network>
110  
111 =cut
112  
113 __PACKAGE__->belongs_to(
114 "ipv6net",
115 "Schema::RackTables::0_20_6::Result::IPv6Network",
116 { id => "ipv6net_id" },
117 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
118 );
119  
120 =head2 vlandescription
121  
122 Type: belongs_to
123  
124 Related object: L<Schema::RackTables::0_20_6::Result::VLANDescription>
125  
126 =cut
127  
128 __PACKAGE__->belongs_to(
129 "vlandescription",
130 "Schema::RackTables::0_20_6::Result::VLANDescription",
131 { domain_id => "domain_id", vlan_id => "vlan_id" },
132 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
133 );
134  
135  
136 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:20
137 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:87WxT+2J9VH009I9I4XTNA
138  
139  
140 # You can replace this text with custom code or comments, and it will be preserved on regeneration
141 1;