RackTables/0_18_1/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_18_1::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_18_1::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","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 => { list => ["access", "trunk", "uplink", "downlink", "none"] },
95 is_nullable => 0,
96 },
97 "wrt_vlans",
98 { data_type => "char", is_nullable => 1, size => 255 },
99 "description",
100 { data_type => "char", is_nullable => 1, size => 255 },
101 );
102  
103 =head1 UNIQUE CONSTRAINTS
104  
105 =head2 C<vst-rule>
106  
107 =over 4
108  
109 =item * L</vst_id>
110  
111 =item * L</rule_no>
112  
113 =back
114  
115 =cut
116  
117 __PACKAGE__->add_unique_constraint("vst-rule", ["vst_id", "rule_no"]);
118  
119 =head1 RELATIONS
120  
121 =head2 vst
122  
123 Type: belongs_to
124  
125 Related object: L<Schema::RackTables::0_18_1::Result::VLANSwitchTemplate>
126  
127 =cut
128  
129 __PACKAGE__->belongs_to(
130 "vst",
131 "Schema::RackTables::0_18_1::Result::VLANSwitchTemplate",
132 { id => "vst_id" },
133 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
134 );
135  
136  
137 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:39
138 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2oHsaFeLTf2M+m/WtUaHtw
139  
140  
141 # You can replace this text with custom code or comments, and it will be preserved on regeneration
142 1;