RackTables/0_19_14/Result/IPv4NAT.pm untested

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