RackTables/0_18_0/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_18_0/Result/LDAPCache.pm ↑ Summary RackTables/0_18_0/Result/Molecule.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_18_0::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_0::Result::Link
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<Link>
31  
32 =cut
33  
34 1 __PACKAGE__->table("Link");
35  
36 =head1 ACCESSORS
37  
38 =head2 porta
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_foreign_key: 1
43 is_nullable: 0
44  
45 =head2 portb
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_foreign_key: 1
50 is_nullable: 0
51  
52 =cut
53  
54 1 __PACKAGE__->add_columns(
55 "porta",
56 {
57 data_type => "integer",
58 extra => { unsigned => 1 },
59 is_foreign_key => 1,
60 is_nullable => 0,
61 },
62 "portb",
63 {
64 data_type => "integer",
65 extra => { unsigned => 1 },
66 is_foreign_key => 1,
67 is_nullable => 0,
68 },
69 );
70  
71 =head1 PRIMARY KEY
72  
73 =over 4
74  
75 =item * L</porta>
76  
77 =item * L</portb>
78  
79 =back
80  
81 =cut
82  
83 1 __PACKAGE__->set_primary_key("porta", "portb");
84  
85 =head1 UNIQUE CONSTRAINTS
86  
87 =head2 C<porta>
88  
89 =over 4
90  
91 =item * L</porta>
92  
93 =back
94  
95 =cut
96  
97 1 __PACKAGE__->add_unique_constraint("porta", ["porta"]);
98  
99 =head2 C<portb>
100  
101 =over 4
102  
103 =item * L</portb>
104  
105 =back
106  
107 =cut
108  
109 1 __PACKAGE__->add_unique_constraint("portb", ["portb"]);
110  
111 =head1 RELATIONS
112  
113 =head2 porta
114  
115 Type: belongs_to
116  
117 Related object: L<Schema::RackTables::0_18_0::Result::Port>
118  
119 =cut
120  
121 1 __PACKAGE__->belongs_to(
122 "porta",
123 "Schema::RackTables::0_18_0::Result::Port",
124 { id => "porta" },
125 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
126 );
127  
128 =head2 portb
129  
130 Type: belongs_to
131  
132 Related object: L<Schema::RackTables::0_18_0::Result::Port>
133  
134 =cut
135  
136 1 __PACKAGE__->belongs_to(
137 "portb",
138 "Schema::RackTables::0_18_0::Result::Port",
139 { id => "portb" },
140 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
141 );
142  
143  
144 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:44
145 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OHA27icx6WeDivBoupGhvA
146  
147  
148 # You can replace this text with custom code or comments, and it will be preserved on regeneration
149 1 1;
« RackTables/0_18_0/Result/LDAPCache.pm ↑ Summary RackTables/0_18_0/Result/Molecule.pm »