RackTables/0_20_11/Result/VLANIPv6.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« RackTables/0_20_11/Result/VLANIPv4.pm ↑ Summary RackTables/0_20_11/Result/VLANSTRule.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_20_11::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_11::Result::VLANIPv6
10  
11 =cut
12  
13 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 2 ▶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 2 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<VLANIPv6>
31  
32 =cut
33  
34 2 __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 2 __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 2 __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_11::Result::IPv6Network>
110  
111 =cut
112  
113 2 __PACKAGE__->belongs_to(
114 "ipv6net",
115 "Schema::RackTables::0_20_11::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_11::Result::VLANDescription>
125  
126 =cut
127  
128 2 __PACKAGE__->belongs_to(
129 "vlandescription",
130 "Schema::RackTables::0_20_11::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 @ 2016-05-12 22:07:10
137 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2jg70J2e+PC5WoP3pFWWUQ
138  
139  
140 # You can replace this text with custom code or comments, and it will be preserved on regeneration
141 2 1;
« RackTables/0_20_11/Result/VLANIPv4.pm ↑ Summary RackTables/0_20_11/Result/VLANSTRule.pm »