RackTables/0_19_7/Result/Port.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 28 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_7::Result::Port;
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_7::Result::Port
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<Port>
31  
32 =cut
33  
34 __PACKAGE__->table("Port");
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 object_id
46  
47 data_type: 'integer'
48 default_value: 0
49 extra: {unsigned => 1}
50 is_foreign_key: 1
51 is_nullable: 0
52  
53 =head2 name
54  
55 data_type: 'char'
56 default_value: (empty string)
57 is_nullable: 0
58 size: 255
59  
60 =head2 iif_id
61  
62 data_type: 'integer'
63 extra: {unsigned => 1}
64 is_foreign_key: 1
65 is_nullable: 0
66  
67 =head2 type
68  
69 data_type: 'integer'
70 default_value: 0
71 extra: {unsigned => 1}
72 is_foreign_key: 1
73 is_nullable: 0
74  
75 =head2 l2address
76  
77 data_type: 'char'
78 is_nullable: 1
79 size: 64
80  
81 =head2 reservation_comment
82  
83 data_type: 'char'
84 is_nullable: 1
85 size: 255
86  
87 =head2 label
88  
89 data_type: 'char'
90 is_nullable: 1
91 size: 255
92  
93 =cut
94  
95 __PACKAGE__->add_columns(
96 "id",
97 {
98 data_type => "integer",
99 extra => { unsigned => 1 },
100 is_auto_increment => 1,
101 is_nullable => 0,
102 },
103 "object_id",
104 {
105 data_type => "integer",
106 default_value => 0,
107 extra => { unsigned => 1 },
108 is_foreign_key => 1,
109 is_nullable => 0,
110 },
111 "name",
112 { data_type => "char", default_value => "", is_nullable => 0, size => 255 },
113 "iif_id",
114 {
115 data_type => "integer",
116 extra => { unsigned => 1 },
117 is_foreign_key => 1,
118 is_nullable => 0,
119 },
120 "type",
121 {
122 data_type => "integer",
123 default_value => 0,
124 extra => { unsigned => 1 },
125 is_foreign_key => 1,
126 is_nullable => 0,
127 },
128 "l2address",
129 { data_type => "char", is_nullable => 1, size => 64 },
130 "reservation_comment",
131 { data_type => "char", is_nullable => 1, size => 255 },
132 "label",
133 { data_type => "char", is_nullable => 1, size => 255 },
134 );
135  
136 =head1 PRIMARY KEY
137  
138 =over 4
139  
140 =item * L</id>
141  
142 =back
143  
144 =cut
145  
146 __PACKAGE__->set_primary_key("id");
147  
148 =head1 UNIQUE CONSTRAINTS
149  
150 =head2 C<object_iif_oif_name>
151  
152 =over 4
153  
154 =item * L</object_id>
155  
156 =item * L</iif_id>
157  
158 =item * L</type>
159  
160 =item * L</name>
161  
162 =back
163  
164 =cut
165  
166 __PACKAGE__->add_unique_constraint(
167 "object_iif_oif_name",
168 ["object_id", "iif_id", "type", "name"],
169 );
170  
171 =head1 RELATIONS
172  
173 =head2 link_porta
174  
175 Type: might_have
176  
177 Related object: L<Schema::RackTables::0_19_7::Result::Link>
178  
179 =cut
180  
181 __PACKAGE__->might_have(
182 "link_porta",
183 "Schema::RackTables::0_19_7::Result::Link",
184 { "foreign.porta" => "self.id" },
185 { cascade_copy => 0, cascade_delete => 0 },
186 );
187  
188 =head2 link_portb
189  
190 Type: might_have
191  
192 Related object: L<Schema::RackTables::0_19_7::Result::Link>
193  
194 =cut
195  
196 __PACKAGE__->might_have(
197 "link_portb",
198 "Schema::RackTables::0_19_7::Result::Link",
199 { "foreign.portb" => "self.id" },
200 { cascade_copy => 0, cascade_delete => 0 },
201 );
202  
203 =head2 object
204  
205 Type: belongs_to
206  
207 Related object: L<Schema::RackTables::0_19_7::Result::RackObject>
208  
209 =cut
210  
211 __PACKAGE__->belongs_to(
212 "object",
213 "Schema::RackTables::0_19_7::Result::RackObject",
214 { id => "object_id" },
215 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
216 );
217  
218 =head2 port_interface_compat
219  
220 Type: belongs_to
221  
222 Related object: L<Schema::RackTables::0_19_7::Result::PortInterfaceCompat>
223  
224 =cut
225  
226 __PACKAGE__->belongs_to(
227 "port_interface_compat",
228 "Schema::RackTables::0_19_7::Result::PortInterfaceCompat",
229 { iif_id => "iif_id", oif_id => "type" },
230 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
231 );
232  
233  
234 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:02:10
235 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2z9u7QDzToUPhtPTJ2YoFg
236  
237  
238 # You can replace this text with custom code or comments, and it will be preserved on regeneration
239 1;