RackTables/0_20_11/Result/Link.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« RackTables/0_20_11/Result/LDAPCache.pm ↑ Summary RackTables/0_20_11/Result/Location.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_20_11::Result::Link;
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_11::Result::Link
10  
11 =cut
12  
13 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 2 ▶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 2 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<Link>
31  
32 =cut
33  
34 2 __PACKAGE__->table("Link");
35  
36 =head1 ACCESSORS
37  
38 =head2 porta
39  
40 data_type: 'integer'
41 default_value: 0
42 extra: {unsigned => 1}
43 is_foreign_key: 1
44 is_nullable: 0
45  
46 =head2 portb
47  
48 data_type: 'integer'
49 default_value: 0
50 extra: {unsigned => 1}
51 is_foreign_key: 1
52 is_nullable: 0
53  
54 =head2 cable
55  
56 data_type: 'char'
57 is_nullable: 1
58 size: 64
59  
60 =cut
61  
62 2 __PACKAGE__->add_columns(
63 "porta",
64 {
65 data_type => "integer",
66 default_value => 0,
67 extra => { unsigned => 1 },
68 is_foreign_key => 1,
69 is_nullable => 0,
70 },
71 "portb",
72 {
73 data_type => "integer",
74 default_value => 0,
75 extra => { unsigned => 1 },
76 is_foreign_key => 1,
77 is_nullable => 0,
78 },
79 "cable",
80 { data_type => "char", is_nullable => 1, size => 64 },
81 );
82  
83 =head1 PRIMARY KEY
84  
85 =over 4
86  
87 =item * L</porta>
88  
89 =item * L</portb>
90  
91 =back
92  
93 =cut
94  
95 2 __PACKAGE__->set_primary_key("porta", "portb");
96  
97 =head1 UNIQUE CONSTRAINTS
98  
99 =head2 C<porta>
100  
101 =over 4
102  
103 =item * L</porta>
104  
105 =back
106  
107 =cut
108  
109 2 __PACKAGE__->add_unique_constraint("porta", ["porta"]);
110  
111 =head2 C<portb>
112  
113 =over 4
114  
115 =item * L</portb>
116  
117 =back
118  
119 =cut
120  
121 2 __PACKAGE__->add_unique_constraint("portb", ["portb"]);
122  
123 =head1 RELATIONS
124  
125 =head2 porta
126  
127 Type: belongs_to
128  
129 Related object: L<Schema::RackTables::0_20_11::Result::Port>
130  
131 =cut
132  
133 2 __PACKAGE__->belongs_to(
134 "porta",
135 "Schema::RackTables::0_20_11::Result::Port",
136 { id => "porta" },
137 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
138 );
139  
140 =head2 portb
141  
142 Type: belongs_to
143  
144 Related object: L<Schema::RackTables::0_20_11::Result::Port>
145  
146 =cut
147  
148 2 __PACKAGE__->belongs_to(
149 "portb",
150 "Schema::RackTables::0_20_11::Result::Port",
151 { id => "portb" },
152 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
153 );
154  
155  
156 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2016-05-12 22:07:10
157 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1HIoT0qTRJPVxOmzUIJuag
158  
159  
160 # You can replace this text with custom code or comments, and it will be preserved on regeneration
161 2 1;
« RackTables/0_20_11/Result/LDAPCache.pm ↑ Summary RackTables/0_20_11/Result/Location.pm »