RackTables/0_20_8/Result/VLANSTRule.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 23 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_20_8::Result::VLANSTRule;
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_8::Result::VLANSTRule
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<VLANSTRule>
31  
32 =cut
33  
34 __PACKAGE__->table("VLANSTRule");
35  
36 =head1 ACCESSORS
37  
38 =head2 vst_id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_foreign_key: 1
43 is_nullable: 0
44  
45 =head2 rule_no
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_nullable: 0
50  
51 =head2 port_pcre
52  
53 data_type: 'char'
54 is_nullable: 0
55 size: 255
56  
57 =head2 port_role
58  
59 data_type: 'enum'
60 default_value: 'none'
61 extra: {list => ["access","trunk","anymode","uplink","downlink","none"]}
62 is_nullable: 0
63  
64 =head2 wrt_vlans
65  
66 data_type: 'text'
67 is_nullable: 1
68  
69 =head2 description
70  
71 data_type: 'char'
72 is_nullable: 1
73 size: 255
74  
75 =cut
76  
77 __PACKAGE__->add_columns(
78 "vst_id",
79 {
80 data_type => "integer",
81 extra => { unsigned => 1 },
82 is_foreign_key => 1,
83 is_nullable => 0,
84 },
85 "rule_no",
86 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
87 "port_pcre",
88 { data_type => "char", is_nullable => 0, size => 255 },
89 "port_role",
90 {
91 data_type => "enum",
92 default_value => "none",
93 extra => {
94 list => ["access", "trunk", "anymode", "uplink", "downlink", "none"],
95 },
96 is_nullable => 0,
97 },
98 "wrt_vlans",
99 { data_type => "text", is_nullable => 1 },
100 "description",
101 { data_type => "char", is_nullable => 1, size => 255 },
102 );
103  
104 =head1 UNIQUE CONSTRAINTS
105  
106 =head2 C<vst-rule>
107  
108 =over 4
109  
110 =item * L</vst_id>
111  
112 =item * L</rule_no>
113  
114 =back
115  
116 =cut
117  
118 __PACKAGE__->add_unique_constraint("vst-rule", ["vst_id", "rule_no"]);
119  
120 =head1 RELATIONS
121  
122 =head2 vst
123  
124 Type: belongs_to
125  
126 Related object: L<Schema::RackTables::0_20_8::Result::VLANSwitchTemplate>
127  
128 =cut
129  
130 __PACKAGE__->belongs_to(
131 "vst",
132 "Schema::RackTables::0_20_8::Result::VLANSwitchTemplate",
133 { id => "vst_id" },
134 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
135 );
136  
137  
138 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:08
139 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g2LQfW4bZU+v1SKT7S0E9g
140  
141  
142 # You can replace this text with custom code or comments, and it will be preserved on regeneration
143 1;