RackTables/0_20_11/Result/VLANDomain.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 26 / 26 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/VLANDescription.pm ↑ Summary RackTables/0_20_11/Result/VLANIPv4.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_20_11::Result::VLANDomain;
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::VLANDomain
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<VLANDomain>
31  
32 =cut
33  
34 2 __PACKAGE__->table("VLANDomain");
35  
36 =head1 ACCESSORS
37  
38 =head2 id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_auto_increment: 1
43 is_nullable: 0
44  
45 =head2 group_id
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_foreign_key: 1
50 is_nullable: 1
51  
52 =head2 description
53  
54 data_type: 'char'
55 is_nullable: 1
56 size: 255
57  
58 =cut
59  
60 2 __PACKAGE__->add_columns(
61 "id",
62 {
63 data_type => "integer",
64 extra => { unsigned => 1 },
65 is_auto_increment => 1,
66 is_nullable => 0,
67 },
68 "group_id",
69 {
70 data_type => "integer",
71 extra => { unsigned => 1 },
72 is_foreign_key => 1,
73 is_nullable => 1,
74 },
75 "description",
76 { data_type => "char", is_nullable => 1, size => 255 },
77 );
78  
79 =head1 PRIMARY KEY
80  
81 =over 4
82  
83 =item * L</id>
84  
85 =back
86  
87 =cut
88  
89 2 __PACKAGE__->set_primary_key("id");
90  
91 =head1 UNIQUE CONSTRAINTS
92  
93 =head2 C<description>
94  
95 =over 4
96  
97 =item * L</description>
98  
99 =back
100  
101 =cut
102  
103 2 __PACKAGE__->add_unique_constraint("description", ["description"]);
104  
105 =head1 RELATIONS
106  
107 =head2 group
108  
109 Type: belongs_to
110  
111 Related object: L<Schema::RackTables::0_20_11::Result::VLANDomain>
112  
113 =cut
114  
115 2 __PACKAGE__->belongs_to(
116 "group",
117 "Schema::RackTables::0_20_11::Result::VLANDomain",
118 { id => "group_id" },
119 {
120 is_deferrable => 1,
121 join_type => "LEFT",
122 on_delete => "SET NULL",
123 on_update => "RESTRICT",
124 },
125 );
126  
127 =head2 vlandescriptions
128  
129 Type: has_many
130  
131 Related object: L<Schema::RackTables::0_20_11::Result::VLANDescription>
132  
133 =cut
134  
135 2 __PACKAGE__->has_many(
136 "vlandescriptions",
137 "Schema::RackTables::0_20_11::Result::VLANDescription",
138 { "foreign.domain_id" => "self.id" },
139 { cascade_copy => 0, cascade_delete => 0 },
140 );
141  
142 =head2 vlandomains
143  
144 Type: has_many
145  
146 Related object: L<Schema::RackTables::0_20_11::Result::VLANDomain>
147  
148 =cut
149  
150 2 __PACKAGE__->has_many(
151 "vlandomains",
152 "Schema::RackTables::0_20_11::Result::VLANDomain",
153 { "foreign.group_id" => "self.id" },
154 { cascade_copy => 0, cascade_delete => 0 },
155 );
156  
157 =head2 vlanswitches
158  
159 Type: has_many
160  
161 Related object: L<Schema::RackTables::0_20_11::Result::VLANSwitch>
162  
163 =cut
164  
165 2 __PACKAGE__->has_many(
166 "vlanswitches",
167 "Schema::RackTables::0_20_11::Result::VLANSwitch",
168 { "foreign.domain_id" => "self.id" },
169 { cascade_copy => 0, cascade_delete => 0 },
170 );
171  
172  
173 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2016-05-12 22:07:10
174 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jQqQO1sxyduBiUqxVDjQog
175  
176  
177 # You can replace this text with custom code or comments, and it will be preserved on regeneration
178 2 1;
« RackTables/0_20_11/Result/VLANDescription.pm ↑ Summary RackTables/0_20_11/Result/VLANIPv4.pm »