RackTables/0_19_13/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_19_13::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_19_13::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 extra: {list => ["regular","shared","virtual","router"]}
64 is_nullable: 1
65  
66 =cut
67  
68 __PACKAGE__->add_columns(
69 "object_id",
70 {
71 data_type => "integer",
72 default_value => 0,
73 extra => { unsigned => 1 },
74 is_foreign_key => 1,
75 is_nullable => 0,
76 },
77 "ip",
78 {
79 data_type => "integer",
80 default_value => 0,
81 extra => { unsigned => 1 },
82 is_nullable => 0,
83 },
84 "name",
85 { data_type => "char", default_value => "", is_nullable => 0, size => 255 },
86 "type",
87 {
88 data_type => "enum",
89 extra => { list => ["regular", "shared", "virtual", "router"] },
90 is_nullable => 1,
91 },
92 );
93  
94 =head1 PRIMARY KEY
95  
96 =over 4
97  
98 =item * L</object_id>
99  
100 =item * L</ip>
101  
102 =back
103  
104 =cut
105  
106 __PACKAGE__->set_primary_key("object_id", "ip");
107  
108 =head1 RELATIONS
109  
110 =head2 object
111  
112 Type: belongs_to
113  
114 Related object: L<Schema::RackTables::0_19_13::Result::RackObject>
115  
116 =cut
117  
118 __PACKAGE__->belongs_to(
119 "object",
120 "Schema::RackTables::0_19_13::Result::RackObject",
121 { id => "object_id" },
122 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
123 );
124  
125  
126 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:02:40
127 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eD4ZbGDPBHgNv9rL1g4BGQ
128  
129  
130 # You can replace this text with custom code or comments, and it will be preserved on regeneration
131 1;