RackTables/0_19_8/Result/PortInterfaceCompat.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_19_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_19_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_nullable: 0
50  
51 =cut
52  
53 __PACKAGE__->add_columns(
54 "iif_id",
55 {
56 data_type => "integer",
57 extra => { unsigned => 1 },
58 is_foreign_key => 1,
59 is_nullable => 0,
60 },
61 "oif_id",
62 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
63 );
64  
65 =head1 UNIQUE CONSTRAINTS
66  
67 =head2 C<pair>
68  
69 =over 4
70  
71 =item * L</iif_id>
72  
73 =item * L</oif_id>
74  
75 =back
76  
77 =cut
78  
79 __PACKAGE__->add_unique_constraint("pair", ["iif_id", "oif_id"]);
80  
81 =head1 RELATIONS
82  
83 =head2 iif
84  
85 Type: belongs_to
86  
87 Related object: L<Schema::RackTables::0_19_8::Result::PortInnerInterface>
88  
89 =cut
90  
91 __PACKAGE__->belongs_to(
92 "iif",
93 "Schema::RackTables::0_19_8::Result::PortInnerInterface",
94 { id => "iif_id" },
95 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
96 );
97  
98 =head2 ports
99  
100 Type: has_many
101  
102 Related object: L<Schema::RackTables::0_19_8::Result::Port>
103  
104 =cut
105  
106 __PACKAGE__->has_many(
107 "ports",
108 "Schema::RackTables::0_19_8::Result::Port",
109 { "foreign.iif_id" => "self.iif_id", "foreign.type" => "self.oif_id" },
110 { cascade_copy => 0, cascade_delete => 0 },
111 );
112  
113  
114 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:02:06
115 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:icoyM99NTgMq+zE1tD5cRQ
116  
117  
118 # You can replace this text with custom code or comments, and it will be preserved on regeneration
119 1;