blib/lib/RackTables/Schema/Result/VLANDescription.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/UserConfig.pm ↑ Summary blib/lib/RackTables/Schema/Result/VLANDomain.pm »
1 package RackTables::Schema::Result::VLANDescription;
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::VLANDescription
18  
19 =cut
20  
21 1 __PACKAGE__->table("VLANDescription");
22  
23 =head1 ACCESSORS
24  
25 =head2 domain_id
26  
27 data_type: 'integer'
28 extra: {unsigned => 1}
29 is_foreign_key: 1
30 is_nullable: 0
31  
32 =head2 vlan_id
33  
34 data_type: 'integer'
35 default_value: 0
36 extra: {unsigned => 1}
37 is_foreign_key: 1
38 is_nullable: 0
39  
40 =head2 vlan_type
41  
42 data_type: 'enum'
43 default_value: 'ondemand'
44 extra: {list => ["ondemand","compulsory","alien"]}
45 is_nullable: 0
46  
47 =head2 vlan_descr
48  
49 data_type: 'char'
50 is_nullable: 1
51 size: 255
52  
53 =cut
54  
55 1 __PACKAGE__->add_columns(
56 "domain_id",
57 {
58 data_type => "integer",
59 extra => { unsigned => 1 },
60 is_foreign_key => 1,
61 is_nullable => 0,
62 },
63 "vlan_id",
64 {
65 data_type => "integer",
66 default_value => 0,
67 extra => { unsigned => 1 },
68 is_foreign_key => 1,
69 is_nullable => 0,
70 },
71 "vlan_type",
72 {
73 data_type => "enum",
74 default_value => "ondemand",
75 extra => { list => ["ondemand", "compulsory", "alien"] },
76 is_nullable => 0,
77 },
78 "vlan_descr",
79 { data_type => "char", is_nullable => 1, size => 255 },
80 );
81 1 __PACKAGE__->set_primary_key("domain_id", "vlan_id");
82  
83 =head1 RELATIONS
84  
85 =head2 domain
86  
87 Type: belongs_to
88  
89 Related object: L<RackTables::Schema::Result::VLANDomain>
90  
91 =cut
92  
93 1 __PACKAGE__->belongs_to(
94 "domain",
95 "RackTables::Schema::Result::VLANDomain",
96 { id => "domain_id" },
97 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
98 );
99  
100 =head2 vlan
101  
102 Type: belongs_to
103  
104 Related object: L<RackTables::Schema::Result::VLANValidID>
105  
106 =cut
107  
108 1 __PACKAGE__->belongs_to(
109 "vlan",
110 "RackTables::Schema::Result::VLANValidID",
111 { vlan_id => "vlan_id" },
112 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
113 );
114  
115 =head2 vlanipv4s
116  
117 Type: has_many
118  
119 Related object: L<RackTables::Schema::Result::VLANIPv4>
120  
121 =cut
122  
123 1 __PACKAGE__->has_many(
124 "vlanipv4s",
125 "RackTables::Schema::Result::VLANIPv4",
126 {
127 "foreign.domain_id" => "self.domain_id",
128 "foreign.vlan_id" => "self.vlan_id",
129 },
130 { cascade_copy => 0, cascade_delete => 0 },
131 );
132  
133 =head2 vlanipv6s
134  
135 Type: has_many
136  
137 Related object: L<RackTables::Schema::Result::VLANIPv6>
138  
139 =cut
140  
141 1 __PACKAGE__->has_many(
142 "vlanipv6s",
143 "RackTables::Schema::Result::VLANIPv6",
144 {
145 "foreign.domain_id" => "self.domain_id",
146 "foreign.vlan_id" => "self.vlan_id",
147 },
148 { cascade_copy => 0, cascade_delete => 0 },
149 );
150  
151  
152 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
153 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8fV30Njk6wVuRkdKSbAefg
154  
155  
156 # You can replace this text with custom code or comments, and it will be preserved on regeneration
157 1 __PACKAGE__->meta->make_immutable;
158 1 1;
« blib/lib/RackTables/Schema/Result/UserConfig.pm ↑ Summary blib/lib/RackTables/Schema/Result/VLANDomain.pm »