RackTables/0_18_1/Result/CachedPAV.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 24 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::CachedPAV;
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::CachedPAV
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<CachedPAV>
31  
32 =cut
33  
34 __PACKAGE__->table("CachedPAV");
35  
36 =head1 ACCESSORS
37  
38 =head2 object_id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_foreign_key: 1
43 is_nullable: 0
44  
45 =head2 port_name
46  
47 data_type: 'char'
48 is_foreign_key: 1
49 is_nullable: 0
50 size: 255
51  
52 =head2 vlan_id
53  
54 data_type: 'integer'
55 default_value: 0
56 extra: {unsigned => 1}
57 is_foreign_key: 1
58 is_nullable: 0
59  
60 =cut
61  
62 __PACKAGE__->add_columns(
63 "object_id",
64 {
65 data_type => "integer",
66 extra => { unsigned => 1 },
67 is_foreign_key => 1,
68 is_nullable => 0,
69 },
70 "port_name",
71 { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 255 },
72 "vlan_id",
73 {
74 data_type => "integer",
75 default_value => 0,
76 extra => { unsigned => 1 },
77 is_foreign_key => 1,
78 is_nullable => 0,
79 },
80 );
81  
82 =head1 PRIMARY KEY
83  
84 =over 4
85  
86 =item * L</object_id>
87  
88 =item * L</port_name>
89  
90 =item * L</vlan_id>
91  
92 =back
93  
94 =cut
95  
96 __PACKAGE__->set_primary_key("object_id", "port_name", "vlan_id");
97  
98 =head1 RELATIONS
99  
100 =head2 cached_pnv
101  
102 Type: might_have
103  
104 Related object: L<Schema::RackTables::0_18_1::Result::CachedPNV>
105  
106 =cut
107  
108 __PACKAGE__->might_have(
109 "cached_pnv",
110 "Schema::RackTables::0_18_1::Result::CachedPNV",
111 {
112 "foreign.object_id" => "self.object_id",
113 "foreign.port_name" => "self.port_name",
114 "foreign.vlan_id" => "self.vlan_id",
115 },
116 { cascade_copy => 0, cascade_delete => 0 },
117 );
118  
119 =head2 cached_pvm
120  
121 Type: belongs_to
122  
123 Related object: L<Schema::RackTables::0_18_1::Result::CachedPVM>
124  
125 =cut
126  
127 __PACKAGE__->belongs_to(
128 "cached_pvm",
129 "Schema::RackTables::0_18_1::Result::CachedPVM",
130 { object_id => "object_id", port_name => "port_name" },
131 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
132 );
133  
134 =head2 vlan
135  
136 Type: belongs_to
137  
138 Related object: L<Schema::RackTables::0_18_1::Result::VLANValidID>
139  
140 =cut
141  
142 __PACKAGE__->belongs_to(
143 "vlan",
144 "Schema::RackTables::0_18_1::Result::VLANValidID",
145 { vlan_id => "vlan_id" },
146 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
147 );
148  
149  
150 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:39
151 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UBiiJzRQ5ko2LtCp1E3ihg
152  
153  
154 # You can replace this text with custom code or comments, and it will be preserved on regeneration
155 1;