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

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 30 / 30 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/LDAPCache.pm ↑ Summary blib/lib/RackTables/Schema/Result/Molecule.pm »
1 package RackTables::Schema::Result::Link;
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::Link
18  
19 =cut
20  
21 1 __PACKAGE__->table("Link");
22  
23 =head1 ACCESSORS
24  
25 =head2 porta
26  
27 data_type: 'integer'
28 default_value: 0
29 extra: {unsigned => 1}
30 is_foreign_key: 1
31 is_nullable: 0
32  
33 =head2 portb
34  
35 data_type: 'integer'
36 default_value: 0
37 extra: {unsigned => 1}
38 is_foreign_key: 1
39 is_nullable: 0
40  
41 =head2 cable
42  
43 data_type: 'char'
44 is_nullable: 1
45 size: 64
46  
47 =cut
48  
49 1 __PACKAGE__->add_columns(
50 "porta",
51 {
52 data_type => "integer",
53 default_value => 0,
54 extra => { unsigned => 1 },
55 is_foreign_key => 1,
56 is_nullable => 0,
57 },
58 "portb",
59 {
60 data_type => "integer",
61 default_value => 0,
62 extra => { unsigned => 1 },
63 is_foreign_key => 1,
64 is_nullable => 0,
65 },
66 "cable",
67 { data_type => "char", is_nullable => 1, size => 64 },
68 );
69 1 __PACKAGE__->set_primary_key("porta", "portb");
70 1 __PACKAGE__->add_unique_constraint("portb", ["portb"]);
71 1 __PACKAGE__->add_unique_constraint("porta", ["porta"]);
72  
73 =head1 RELATIONS
74  
75 =head2 porta
76  
77 Type: belongs_to
78  
79 Related object: L<RackTables::Schema::Result::Port>
80  
81 =cut
82  
83 1 __PACKAGE__->belongs_to(
84 "porta",
85 "RackTables::Schema::Result::Port",
86 { id => "porta" },
87 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
88 );
89  
90 =head2 portb
91  
92 Type: belongs_to
93  
94 Related object: L<RackTables::Schema::Result::Port>
95  
96 =cut
97  
98 1 __PACKAGE__->belongs_to(
99 "portb",
100 "RackTables::Schema::Result::Port",
101 { id => "portb" },
102 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
103 );
104  
105  
106 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
107 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7dE/VfVu3FXYKaho09Yyqw
108  
109  
110 # You can replace this text with custom code or comments, and it will be preserved on regeneration
111 1 __PACKAGE__->meta->make_immutable;
112 1 1;
« blib/lib/RackTables/Schema/Result/LDAPCache.pm ↑ Summary blib/lib/RackTables/Schema/Result/Molecule.pm »