RackTables/0_18_5/Result/Link.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 26 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_18_5::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_18_5::Result::Link
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<Link>
31  
32 =cut
33  
34 __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 =cut
55  
56 __PACKAGE__->add_columns(
57 "porta",
58 {
59 data_type => "integer",
60 default_value => 0,
61 extra => { unsigned => 1 },
62 is_foreign_key => 1,
63 is_nullable => 0,
64 },
65 "portb",
66 {
67 data_type => "integer",
68 default_value => 0,
69 extra => { unsigned => 1 },
70 is_foreign_key => 1,
71 is_nullable => 0,
72 },
73 );
74  
75 =head1 PRIMARY KEY
76  
77 =over 4
78  
79 =item * L</porta>
80  
81 =item * L</portb>
82  
83 =back
84  
85 =cut
86  
87 __PACKAGE__->set_primary_key("porta", "portb");
88  
89 =head1 UNIQUE CONSTRAINTS
90  
91 =head2 C<porta>
92  
93 =over 4
94  
95 =item * L</porta>
96  
97 =back
98  
99 =cut
100  
101 __PACKAGE__->add_unique_constraint("porta", ["porta"]);
102  
103 =head2 C<portb>
104  
105 =over 4
106  
107 =item * L</portb>
108  
109 =back
110  
111 =cut
112  
113 __PACKAGE__->add_unique_constraint("portb", ["portb"]);
114  
115 =head1 RELATIONS
116  
117 =head2 porta
118  
119 Type: belongs_to
120  
121 Related object: L<Schema::RackTables::0_18_5::Result::Port>
122  
123 =cut
124  
125 __PACKAGE__->belongs_to(
126 "porta",
127 "Schema::RackTables::0_18_5::Result::Port",
128 { id => "porta" },
129 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
130 );
131  
132 =head2 portb
133  
134 Type: belongs_to
135  
136 Related object: L<Schema::RackTables::0_18_5::Result::Port>
137  
138 =cut
139  
140 __PACKAGE__->belongs_to(
141 "portb",
142 "Schema::RackTables::0_18_5::Result::Port",
143 { id => "portb" },
144 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
145 );
146  
147  
148 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:18
149 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TlI4hux+wDDp3VVjmgZ1EA
150  
151  
152 # You can replace this text with custom code or comments, and it will be preserved on regeneration
153 1;