RackTables/0_18_0/Result/VLANSwitchTemplate.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 24 / 24 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/VLANSwitch.pm ↑ Summary RackTables/0_18_0/Result/VLANValidID.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_18_0::Result::VLANSwitchTemplate;
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::VLANSwitchTemplate
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<VLANSwitchTemplate>
31  
32 =cut
33  
34 1 __PACKAGE__->table("VLANSwitchTemplate");
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 max_local_vlans
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_nullable: 1
50  
51 =head2 description
52  
53 data_type: 'char'
54 is_nullable: 1
55 size: 255
56  
57 =cut
58  
59 1 __PACKAGE__->add_columns(
60 "id",
61 {
62 data_type => "integer",
63 extra => { unsigned => 1 },
64 is_auto_increment => 1,
65 is_nullable => 0,
66 },
67 "max_local_vlans",
68 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 },
69 "description",
70 { data_type => "char", is_nullable => 1, size => 255 },
71 );
72  
73 =head1 PRIMARY KEY
74  
75 =over 4
76  
77 =item * L</id>
78  
79 =back
80  
81 =cut
82  
83 1 __PACKAGE__->set_primary_key("id");
84  
85 =head1 UNIQUE CONSTRAINTS
86  
87 =head2 C<description>
88  
89 =over 4
90  
91 =item * L</description>
92  
93 =back
94  
95 =cut
96  
97 1 __PACKAGE__->add_unique_constraint("description", ["description"]);
98  
99 =head1 RELATIONS
100  
101 =head2 vlanstrules
102  
103 Type: has_many
104  
105 Related object: L<Schema::RackTables::0_18_0::Result::VLANSTRule>
106  
107 =cut
108  
109 1 __PACKAGE__->has_many(
110 "vlanstrules",
111 "Schema::RackTables::0_18_0::Result::VLANSTRule",
112 { "foreign.vst_id" => "self.id" },
113 { cascade_copy => 0, cascade_delete => 0 },
114 );
115  
116 =head2 vlanswitches
117  
118 Type: has_many
119  
120 Related object: L<Schema::RackTables::0_18_0::Result::VLANSwitch>
121  
122 =cut
123  
124 1 __PACKAGE__->has_many(
125 "vlanswitches",
126 "Schema::RackTables::0_18_0::Result::VLANSwitch",
127 { "foreign.template_id" => "self.id" },
128 { cascade_copy => 0, cascade_delete => 0 },
129 );
130  
131  
132 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:45
133 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WvYTJPtT9E2XsrR24cHxvw
134  
135  
136 # You can replace this text with custom code or comments, and it will be preserved on regeneration
137 1 1;
« RackTables/0_18_0/Result/VLANSwitch.pm ↑ Summary RackTables/0_18_0/Result/VLANValidID.pm »