RackTables/0_17_5/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_17_5::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_17_5::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 extra: {unsigned => 1}
42 is_foreign_key: 1
43 is_nullable: 0
44  
45 =head2 proto
46  
47 data_type: 'enum'
48 default_value: 'TCP'
49 extra: {list => ["TCP","UDP"]}
50 is_nullable: 0
51  
52 =head2 localip
53  
54 data_type: 'integer'
55 extra: {unsigned => 1}
56 is_nullable: 0
57  
58 =head2 localport
59  
60 data_type: 'smallint'
61 extra: {unsigned => 1}
62 is_nullable: 0
63  
64 =head2 remoteip
65  
66 data_type: 'integer'
67 extra: {unsigned => 1}
68 is_nullable: 0
69  
70 =head2 remoteport
71  
72 data_type: 'smallint'
73 extra: {unsigned => 1}
74 is_nullable: 0
75  
76 =head2 description
77  
78 data_type: 'char'
79 is_nullable: 1
80 size: 255
81  
82 =cut
83  
84 __PACKAGE__->add_columns(
85 "object_id",
86 {
87 data_type => "integer",
88 extra => { unsigned => 1 },
89 is_foreign_key => 1,
90 is_nullable => 0,
91 },
92 "proto",
93 {
94 data_type => "enum",
95 default_value => "TCP",
96 extra => { list => ["TCP", "UDP"] },
97 is_nullable => 0,
98 },
99 "localip",
100 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
101 "localport",
102 { data_type => "smallint", extra => { unsigned => 1 }, is_nullable => 0 },
103 "remoteip",
104 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
105 "remoteport",
106 { data_type => "smallint", extra => { unsigned => 1 }, is_nullable => 0 },
107 "description",
108 { data_type => "char", is_nullable => 1, size => 255 },
109 );
110  
111 =head1 PRIMARY KEY
112  
113 =over 4
114  
115 =item * L</object_id>
116  
117 =item * L</proto>
118  
119 =item * L</localip>
120  
121 =item * L</localport>
122  
123 =item * L</remoteip>
124  
125 =item * L</remoteport>
126  
127 =back
128  
129 =cut
130  
131 __PACKAGE__->set_primary_key(
132 "object_id",
133 "proto",
134 "localip",
135 "localport",
136 "remoteip",
137 "remoteport",
138 );
139  
140 =head1 RELATIONS
141  
142 =head2 object
143  
144 Type: belongs_to
145  
146 Related object: L<Schema::RackTables::0_17_5::Result::RackObject>
147  
148 =cut
149  
150 __PACKAGE__->belongs_to(
151 "object",
152 "Schema::RackTables::0_17_5::Result::RackObject",
153 { id => "object_id" },
154 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
155 );
156  
157  
158 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:04:07
159 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Q9RlaLb5dNDOzDQYvPQDXg
160  
161  
162 # You can replace this text with custom code or comments, and it will be preserved on regeneration
163 1;