RackTables/0_18_0/Result/IPv4Network.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_18_0/Result/IPv4NAT.pm ↑ Summary RackTables/0_18_0/Result/IPv4RS.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_18_0::Result::IPv4Network;
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_18_0::Result::IPv4Network
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<IPv4Network>
31  
32 =cut
33  
34 1 __PACKAGE__->table("IPv4Network");
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 ip
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_nullable: 0
50  
51 =head2 mask
52  
53 data_type: 'integer'
54 extra: {unsigned => 1}
55 is_nullable: 0
56  
57 =head2 name
58  
59 data_type: 'char'
60 is_nullable: 1
61 size: 255
62  
63 =head2 comment
64  
65 data_type: 'text'
66 is_nullable: 1
67  
68 =cut
69  
70 1 __PACKAGE__->add_columns(
71 "id",
72 {
73 data_type => "integer",
74 extra => { unsigned => 1 },
75 is_auto_increment => 1,
76 is_nullable => 0,
77 },
78 "ip",
79 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
80 "mask",
81 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
82 "name",
83 { data_type => "char", is_nullable => 1, size => 255 },
84 "comment",
85 { data_type => "text", is_nullable => 1 },
86 );
87  
88 =head1 PRIMARY KEY
89  
90 =over 4
91  
92 =item * L</id>
93  
94 =back
95  
96 =cut
97  
98 1 __PACKAGE__->set_primary_key("id");
99  
100 =head1 UNIQUE CONSTRAINTS
101  
102 =head2 C<base-len>
103  
104 =over 4
105  
106 =item * L</ip>
107  
108 =item * L</mask>
109  
110 =back
111  
112 =cut
113  
114 1 __PACKAGE__->add_unique_constraint("base-len", ["ip", "mask"]);
115  
116 =head1 RELATIONS
117  
118 =head2 vlanipv4s
119  
120 Type: has_many
121  
122 Related object: L<Schema::RackTables::0_18_0::Result::VLANIPv4>
123  
124 =cut
125  
126 1 __PACKAGE__->has_many(
127 "vlanipv4s",
128 "Schema::RackTables::0_18_0::Result::VLANIPv4",
129 { "foreign.ipv4net_id" => "self.id" },
130 { cascade_copy => 0, cascade_delete => 0 },
131 );
132  
133  
134 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:44
135 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4rCTsHv7tJHxZfQo6vbMNg
136  
137  
138 # You can replace this text with custom code or comments, and it will be preserved on regeneration
139 1 1;
« RackTables/0_18_0/Result/IPv4NAT.pm ↑ Summary RackTables/0_18_0/Result/IPv4RS.pm »