blib/lib/RackTables/Schema/Result/PortInterfaceCompat.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/RackTables/Schema/Result/PortInnerInterface.pm ↑ Summary blib/lib/RackTables/Schema/Result/PortNativeVLAN.pm »
1 package RackTables::Schema::Result::PortInterfaceCompat;
2  
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use MooseX::NonMoose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 extends 'DBIx::Class::Core';
13  
14  
15 =head1 NAME
16  
17 RackTables::Schema::Result::PortInterfaceCompat
18  
19 =cut
20  
21 1 __PACKAGE__->table("PortInterfaceCompat");
22  
23 =head1 ACCESSORS
24  
25 =head2 iif_id
26  
27 data_type: 'integer'
28 extra: {unsigned => 1}
29 is_foreign_key: 1
30 is_nullable: 0
31  
32 =head2 oif_id
33  
34 data_type: 'integer'
35 extra: {unsigned => 1}
36 is_nullable: 0
37  
38 =cut
39  
40 1 __PACKAGE__->add_columns(
41 "iif_id",
42 {
43 data_type => "integer",
44 extra => { unsigned => 1 },
45 is_foreign_key => 1,
46 is_nullable => 0,
47 },
48 "oif_id",
49 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
50 );
51 1 __PACKAGE__->add_unique_constraint("pair", ["iif_id", "oif_id"]);
52  
53 =head1 RELATIONS
54  
55 =head2 ports
56  
57 Type: has_many
58  
59 Related object: L<RackTables::Schema::Result::Port>
60  
61 =cut
62  
63 1 __PACKAGE__->has_many(
64 "ports",
65 "RackTables::Schema::Result::Port",
66 { "foreign.iif_id" => "self.iif_id", "foreign.type" => "self.oif_id" },
67 { cascade_copy => 0, cascade_delete => 0 },
68 );
69  
70 =head2 iif
71  
72 Type: belongs_to
73  
74 Related object: L<RackTables::Schema::Result::PortInnerInterface>
75  
76 =cut
77  
78 1 __PACKAGE__->belongs_to(
79 "iif",
80 "RackTables::Schema::Result::PortInnerInterface",
81 { id => "iif_id" },
82 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
83 );
84  
85  
86 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
87 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BmlJJmGN8QShoNQlPRiruw
88  
89  
90 # You can replace this text with custom code or comments, and it will be preserved on regeneration
91 1 __PACKAGE__->meta->make_immutable;
92 1 1;
« blib/lib/RackTables/Schema/Result/PortInnerInterface.pm ↑ Summary blib/lib/RackTables/Schema/Result/PortNativeVLAN.pm »