RackTables/0_18_1/Result/IPv4Network.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 24 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_18_1::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_1::Result::IPv4Network
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<IPv4Network>
31  
32 =cut
33  
34 __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 default_value: 0
49 extra: {unsigned => 1}
50 is_nullable: 0
51  
52 =head2 mask
53  
54 data_type: 'integer'
55 default_value: 0
56 extra: {unsigned => 1}
57 is_nullable: 0
58  
59 =head2 name
60  
61 data_type: 'char'
62 is_nullable: 1
63 size: 255
64  
65 =head2 comment
66  
67 data_type: 'text'
68 is_nullable: 1
69  
70 =cut
71  
72 __PACKAGE__->add_columns(
73 "id",
74 {
75 data_type => "integer",
76 extra => { unsigned => 1 },
77 is_auto_increment => 1,
78 is_nullable => 0,
79 },
80 "ip",
81 {
82 data_type => "integer",
83 default_value => 0,
84 extra => { unsigned => 1 },
85 is_nullable => 0,
86 },
87 "mask",
88 {
89 data_type => "integer",
90 default_value => 0,
91 extra => { unsigned => 1 },
92 is_nullable => 0,
93 },
94 "name",
95 { data_type => "char", is_nullable => 1, size => 255 },
96 "comment",
97 { data_type => "text", is_nullable => 1 },
98 );
99  
100 =head1 PRIMARY KEY
101  
102 =over 4
103  
104 =item * L</id>
105  
106 =back
107  
108 =cut
109  
110 __PACKAGE__->set_primary_key("id");
111  
112 =head1 UNIQUE CONSTRAINTS
113  
114 =head2 C<base-len>
115  
116 =over 4
117  
118 =item * L</ip>
119  
120 =item * L</mask>
121  
122 =back
123  
124 =cut
125  
126 __PACKAGE__->add_unique_constraint("base-len", ["ip", "mask"]);
127  
128 =head1 RELATIONS
129  
130 =head2 vlanipv4s
131  
132 Type: has_many
133  
134 Related object: L<Schema::RackTables::0_18_1::Result::VLANIPv4>
135  
136 =cut
137  
138 __PACKAGE__->has_many(
139 "vlanipv4s",
140 "Schema::RackTables::0_18_1::Result::VLANIPv4",
141 { "foreign.ipv4net_id" => "self.id" },
142 { cascade_copy => 0, cascade_delete => 0 },
143 );
144  
145  
146 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:39
147 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jGPN4MAKuoPTbL3g0OQLAw
148  
149  
150 # You can replace this text with custom code or comments, and it will be preserved on regeneration
151 1;