RackTables/0_20_7/Result/VSPorts.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_20_7::Result::VSPorts;
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_20_7::Result::VSPorts
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<VSPorts>
31  
32 =cut
33  
34 __PACKAGE__->table("VSPorts");
35  
36 =head1 ACCESSORS
37  
38 =head2 vs_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 extra: {list => ["TCP","UDP","MARK"]}
49 is_nullable: 0
50  
51 =head2 vport
52  
53 data_type: 'integer'
54 extra: {unsigned => 1}
55 is_nullable: 0
56  
57 =head2 vsconfig
58  
59 data_type: 'text'
60 is_nullable: 1
61  
62 =head2 rsconfig
63  
64 data_type: 'text'
65 is_nullable: 1
66  
67 =cut
68  
69 __PACKAGE__->add_columns(
70 "vs_id",
71 {
72 data_type => "integer",
73 extra => { unsigned => 1 },
74 is_foreign_key => 1,
75 is_nullable => 0,
76 },
77 "proto",
78 {
79 data_type => "enum",
80 extra => { list => ["TCP", "UDP", "MARK"] },
81 is_nullable => 0,
82 },
83 "vport",
84 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
85 "vsconfig",
86 { data_type => "text", is_nullable => 1 },
87 "rsconfig",
88 { data_type => "text", is_nullable => 1 },
89 );
90  
91 =head1 PRIMARY KEY
92  
93 =over 4
94  
95 =item * L</vs_id>
96  
97 =item * L</proto>
98  
99 =item * L</vport>
100  
101 =back
102  
103 =cut
104  
105 __PACKAGE__->set_primary_key("vs_id", "proto", "vport");
106  
107 =head1 RELATIONS
108  
109 =head2 v
110  
111 Type: belongs_to
112  
113 Related object: L<Schema::RackTables::0_20_7::Result::VS>
114  
115 =cut
116  
117 __PACKAGE__->belongs_to(
118 "v",
119 "Schema::RackTables::0_20_7::Result::VS",
120 { id => "vs_id" },
121 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
122 );
123  
124 =head2 vsenabled_ports
125  
126 Type: has_many
127  
128 Related object: L<Schema::RackTables::0_20_7::Result::VSEnabledPorts>
129  
130 =cut
131  
132 __PACKAGE__->has_many(
133 "vsenabled_ports",
134 "Schema::RackTables::0_20_7::Result::VSEnabledPorts",
135 {
136 "foreign.proto" => "self.proto",
137 "foreign.vport" => "self.vport",
138 "foreign.vs_id" => "self.vs_id",
139 },
140 { cascade_copy => 0, cascade_delete => 0 },
141 );
142  
143  
144 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:14
145 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KORVq6EoUev1bdYDPsB/1A
146  
147  
148 # You can replace this text with custom code or comments, and it will be preserved on regeneration
149 1;