RackTables/0_18_0/Result/PortInterfaceCompat.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« RackTables/0_18_0/Result/PortInnerInterface.pm ↑ Summary RackTables/0_18_0/Result/PortNativeVLAN.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_18_0::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_18_0::Result::PortInterfaceCompat
10  
11 =cut
12  
13 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
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 1 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<PortInterfaceCompat>
31  
32 =cut
33  
34 1 __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 1 __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 1 __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_18_0::Result::PortInnerInterface>
88  
89 =cut
90  
91 1 __PACKAGE__->belongs_to(
92 "iif",
93 "Schema::RackTables::0_18_0::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_18_0::Result::Port>
103  
104 =cut
105  
106 1 __PACKAGE__->has_many(
107 "ports",
108 "Schema::RackTables::0_18_0::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:03:44
115 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MaCtMx/ULvWIlD8lNGXIuw
116  
117  
118 # You can replace this text with custom code or comments, and it will be preserved on regeneration
119 1 1;
« RackTables/0_18_0/Result/PortInnerInterface.pm ↑ Summary RackTables/0_18_0/Result/PortNativeVLAN.pm »