RackTables/0_20_2/Result/IPv4Allocation.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 22 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_2::Result::IPv4Allocation;
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_2::Result::IPv4Allocation
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<IPv4Allocation>
31  
32 =cut
33  
34 __PACKAGE__->table("IPv4Allocation");
35  
36 =head1 ACCESSORS
37  
38 =head2 object_id
39  
40 data_type: 'integer'
41 default_value: 0
42 extra: {unsigned => 1}
43 is_foreign_key: 1
44 is_nullable: 0
45  
46 =head2 ip
47  
48 data_type: 'integer'
49 default_value: 0
50 extra: {unsigned => 1}
51 is_nullable: 0
52  
53 =head2 name
54  
55 data_type: 'char'
56 default_value: (empty string)
57 is_nullable: 0
58 size: 255
59  
60 =head2 type
61  
62 data_type: 'enum'
63 default_value: 'regular'
64 extra: {list => ["regular","shared","virtual","router"]}
65 is_nullable: 0
66  
67 =cut
68  
69 __PACKAGE__->add_columns(
70 "object_id",
71 {
72 data_type => "integer",
73 default_value => 0,
74 extra => { unsigned => 1 },
75 is_foreign_key => 1,
76 is_nullable => 0,
77 },
78 "ip",
79 {
80 data_type => "integer",
81 default_value => 0,
82 extra => { unsigned => 1 },
83 is_nullable => 0,
84 },
85 "name",
86 { data_type => "char", default_value => "", is_nullable => 0, size => 255 },
87 "type",
88 {
89 data_type => "enum",
90 default_value => "regular",
91 extra => { list => ["regular", "shared", "virtual", "router"] },
92 is_nullable => 0,
93 },
94 );
95  
96 =head1 PRIMARY KEY
97  
98 =over 4
99  
100 =item * L</object_id>
101  
102 =item * L</ip>
103  
104 =back
105  
106 =cut
107  
108 __PACKAGE__->set_primary_key("object_id", "ip");
109  
110 =head1 RELATIONS
111  
112 =head2 object
113  
114 Type: belongs_to
115  
116 Related object: L<Schema::RackTables::0_20_2::Result::Object>
117  
118 =cut
119  
120 __PACKAGE__->belongs_to(
121 "object",
122 "Schema::RackTables::0_20_2::Result::Object",
123 { id => "object_id" },
124 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
125 );
126  
127  
128 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:40
129 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uzXSUK8LtNtFMuaA4nP8CQ
130  
131  
132 # You can replace this text with custom code or comments, and it will be preserved on regeneration
133 1;