RackTables/0_19_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_19_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_19_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: 'char'
67 is_nullable: 1
68 size: 255
69  
70 =head2 description
71  
72 data_type: 'char'
73 is_nullable: 1
74 size: 255
75  
76 =cut
77  
78 __PACKAGE__->add_columns(
79 "vst_id",
80 {
81 data_type => "integer",
82 extra => { unsigned => 1 },
83 is_foreign_key => 1,
84 is_nullable => 0,
85 },
86 "rule_no",
87 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
88 "port_pcre",
89 { data_type => "char", is_nullable => 0, size => 255 },
90 "port_role",
91 {
92 data_type => "enum",
93 default_value => "none",
94 extra => {
95 list => ["access", "trunk", "anymode", "uplink", "downlink", "none"],
96 },
97 is_nullable => 0,
98 },
99 "wrt_vlans",
100 { data_type => "char", is_nullable => 1, size => 255 },
101 "description",
102 { data_type => "char", is_nullable => 1, size => 255 },
103 );
104  
105 =head1 UNIQUE CONSTRAINTS
106  
107 =head2 C<vst-rule>
108  
109 =over 4
110  
111 =item * L</vst_id>
112  
113 =item * L</rule_no>
114  
115 =back
116  
117 =cut
118  
119 __PACKAGE__->add_unique_constraint("vst-rule", ["vst_id", "rule_no"]);
120  
121 =head1 RELATIONS
122  
123 =head2 vst
124  
125 Type: belongs_to
126  
127 Related object: L<Schema::RackTables::0_19_8::Result::VLANSwitchTemplate>
128  
129 =cut
130  
131 __PACKAGE__->belongs_to(
132 "vst",
133 "Schema::RackTables::0_19_8::Result::VLANSwitchTemplate",
134 { id => "vst_id" },
135 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
136 );
137  
138  
139 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:02:06
140 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:07wsS/edVm2Dxv5Wz6H2pQ
141  
142  
143 # You can replace this text with custom code or comments, and it will be preserved on regeneration
144 1;