blib/lib/RackTables/Schema/Result/IPv4Allocation.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/RackTables/Schema/Result/IPv4Address.pm ↑ Summary blib/lib/RackTables/Schema/Result/IPv4LB.pm »
1 package RackTables::Schema::Result::IPv4Allocation;
2  
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use MooseX::NonMoose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 extends 'DBIx::Class::Core';
13  
14  
15 =head1 NAME
16  
17 RackTables::Schema::Result::IPv4Allocation
18  
19 =cut
20  
21 1 __PACKAGE__->table("IPv4Allocation");
22  
23 =head1 ACCESSORS
24  
25 =head2 object_id
26  
27 data_type: 'integer'
28 default_value: 0
29 extra: {unsigned => 1}
30 is_foreign_key: 1
31 is_nullable: 0
32  
33 =head2 ip
34  
35 data_type: 'integer'
36 default_value: 0
37 extra: {unsigned => 1}
38 is_nullable: 0
39  
40 =head2 name
41  
42 data_type: 'char'
43 default_value: (empty string)
44 is_nullable: 0
45 size: 255
46  
47 =head2 type
48  
49 data_type: 'enum'
50 extra: {list => ["regular","shared","virtual","router"]}
51 is_nullable: 1
52  
53 =cut
54  
55 1 __PACKAGE__->add_columns(
56 "object_id",
57 {
58 data_type => "integer",
59 default_value => 0,
60 extra => { unsigned => 1 },
61 is_foreign_key => 1,
62 is_nullable => 0,
63 },
64 "ip",
65 {
66 data_type => "integer",
67 default_value => 0,
68 extra => { unsigned => 1 },
69 is_nullable => 0,
70 },
71 "name",
72 { data_type => "char", default_value => "", is_nullable => 0, size => 255 },
73 "type",
74 {
75 data_type => "enum",
76 extra => { list => ["regular", "shared", "virtual", "router"] },
77 is_nullable => 1,
78 },
79 );
80 1 __PACKAGE__->set_primary_key("object_id", "ip");
81  
82 =head1 RELATIONS
83  
84 =head2 object
85  
86 Type: belongs_to
87  
88 Related object: L<RackTables::Schema::Result::RackObject>
89  
90 =cut
91  
92 1 __PACKAGE__->belongs_to(
93 "object",
94 "RackTables::Schema::Result::RackObject",
95 { id => "object_id" },
96 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
97 );
98  
99  
100 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
101 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Bh8yXvXdmHHdeqdxDIW73g
102  
103  
104 # You can replace this text with custom code or comments, and it will be preserved on regeneration
105 1 __PACKAGE__->meta->make_immutable;
106 1 1;
« blib/lib/RackTables/Schema/Result/IPv4Address.pm ↑ Summary blib/lib/RackTables/Schema/Result/IPv4LB.pm »