RackTables/0_18_1/Result/VLANDomain.pm untested

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