RackTables/0_20_8/Result/PortInterfaceCompat.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 25 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_8::Result::PortInterfaceCompat;
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_8::Result::PortInterfaceCompat
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<PortInterfaceCompat>
31  
32 =cut
33  
34 __PACKAGE__->table("PortInterfaceCompat");
35  
36 =head1 ACCESSORS
37  
38 =head2 iif_id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_foreign_key: 1
43 is_nullable: 0
44  
45 =head2 oif_id
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_foreign_key: 1
50 is_nullable: 0
51  
52 =cut
53  
54 __PACKAGE__->add_columns(
55 "iif_id",
56 {
57 data_type => "integer",
58 extra => { unsigned => 1 },
59 is_foreign_key => 1,
60 is_nullable => 0,
61 },
62 "oif_id",
63 {
64 data_type => "integer",
65 extra => { unsigned => 1 },
66 is_foreign_key => 1,
67 is_nullable => 0,
68 },
69 );
70  
71 =head1 UNIQUE CONSTRAINTS
72  
73 =head2 C<pair>
74  
75 =over 4
76  
77 =item * L</iif_id>
78  
79 =item * L</oif_id>
80  
81 =back
82  
83 =cut
84  
85 __PACKAGE__->add_unique_constraint("pair", ["iif_id", "oif_id"]);
86  
87 =head1 RELATIONS
88  
89 =head2 iif
90  
91 Type: belongs_to
92  
93 Related object: L<Schema::RackTables::0_20_8::Result::PortInnerInterface>
94  
95 =cut
96  
97 __PACKAGE__->belongs_to(
98 "iif",
99 "Schema::RackTables::0_20_8::Result::PortInnerInterface",
100 { id => "iif_id" },
101 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
102 );
103  
104 =head2 oif
105  
106 Type: belongs_to
107  
108 Related object: L<Schema::RackTables::0_20_8::Result::PortOuterInterface>
109  
110 =cut
111  
112 __PACKAGE__->belongs_to(
113 "oif",
114 "Schema::RackTables::0_20_8::Result::PortOuterInterface",
115 { id => "oif_id" },
116 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
117 );
118  
119 =head2 ports
120  
121 Type: has_many
122  
123 Related object: L<Schema::RackTables::0_20_8::Result::Port>
124  
125 =cut
126  
127 __PACKAGE__->has_many(
128 "ports",
129 "Schema::RackTables::0_20_8::Result::Port",
130 { "foreign.iif_id" => "self.iif_id", "foreign.type" => "self.oif_id" },
131 { cascade_copy => 0, cascade_delete => 0 },
132 );
133  
134  
135 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:08
136 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5jqT2Y8PHT8/seAVYmIo6A
137  
138  
139 # You can replace this text with custom code or comments, and it will be preserved on regeneration
140 1;