blib/lib/RackTables/Schema/Result/IPv4NAT.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/RackTables/Schema/Result/IPv4LB.pm ↑ Summary blib/lib/RackTables/Schema/Result/IPv4Network.pm »
1 package RackTables::Schema::Result::IPv4NAT;
2  
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use MooseX::NonMoose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 extends 'DBIx::Class::Core';
13  
14  
15 =head1 NAME
16  
17 RackTables::Schema::Result::IPv4NAT
18  
19 =cut
20  
21 1 __PACKAGE__->table("IPv4NAT");
22  
23 =head1 ACCESSORS
24  
25 =head2 object_id
26  
27 data_type: 'integer'
28 default_value: 0
29 extra: {unsigned => 1}
30 is_foreign_key: 1
31 is_nullable: 0
32  
33 =head2 proto
34  
35 data_type: 'enum'
36 default_value: 'TCP'
37 extra: {list => ["TCP","UDP"]}
38 is_nullable: 0
39  
40 =head2 localip
41  
42 data_type: 'integer'
43 default_value: 0
44 extra: {unsigned => 1}
45 is_nullable: 0
46  
47 =head2 localport
48  
49 data_type: 'smallint'
50 default_value: 0
51 extra: {unsigned => 1}
52 is_nullable: 0
53  
54 =head2 remoteip
55  
56 data_type: 'integer'
57 default_value: 0
58 extra: {unsigned => 1}
59 is_nullable: 0
60  
61 =head2 remoteport
62  
63 data_type: 'smallint'
64 default_value: 0
65 extra: {unsigned => 1}
66 is_nullable: 0
67  
68 =head2 description
69  
70 data_type: 'char'
71 is_nullable: 1
72 size: 255
73  
74 =cut
75  
76 1 __PACKAGE__->add_columns(
77 "object_id",
78 {
79 data_type => "integer",
80 default_value => 0,
81 extra => { unsigned => 1 },
82 is_foreign_key => 1,
83 is_nullable => 0,
84 },
85 "proto",
86 {
87 data_type => "enum",
88 default_value => "TCP",
89 extra => { list => ["TCP", "UDP"] },
90 is_nullable => 0,
91 },
92 "localip",
93 {
94 data_type => "integer",
95 default_value => 0,
96 extra => { unsigned => 1 },
97 is_nullable => 0,
98 },
99 "localport",
100 {
101 data_type => "smallint",
102 default_value => 0,
103 extra => { unsigned => 1 },
104 is_nullable => 0,
105 },
106 "remoteip",
107 {
108 data_type => "integer",
109 default_value => 0,
110 extra => { unsigned => 1 },
111 is_nullable => 0,
112 },
113 "remoteport",
114 {
115 data_type => "smallint",
116 default_value => 0,
117 extra => { unsigned => 1 },
118 is_nullable => 0,
119 },
120 "description",
121 { data_type => "char", is_nullable => 1, size => 255 },
122 );
123 1 __PACKAGE__->set_primary_key(
124 "object_id",
125 "proto",
126 "localip",
127 "localport",
128 "remoteip",
129 "remoteport",
130 );
131  
132 =head1 RELATIONS
133  
134 =head2 object
135  
136 Type: belongs_to
137  
138 Related object: L<RackTables::Schema::Result::RackObject>
139  
140 =cut
141  
142 1 __PACKAGE__->belongs_to(
143 "object",
144 "RackTables::Schema::Result::RackObject",
145 { id => "object_id" },
146 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
147 );
148  
149  
150 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
151 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iCaHuL6r8ezE17WF5blr5Q
152  
153  
154 # You can replace this text with custom code or comments, and it will be preserved on regeneration
155 1 __PACKAGE__->meta->make_immutable;
156 1 1;
« blib/lib/RackTables/Schema/Result/IPv4LB.pm ↑ Summary blib/lib/RackTables/Schema/Result/IPv4Network.pm »