RackTables/0_20_11/Result/IPv6Allocation.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« RackTables/0_20_11/Result/IPv6Address.pm ↑ Summary RackTables/0_20_11/Result/IPv6Log.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_20_11::Result::IPv6Allocation;
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_11::Result::IPv6Allocation
10  
11 =cut
12  
13 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 2 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
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 2 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<IPv6Allocation>
31  
32 =cut
33  
34 2 __PACKAGE__->table("IPv6Allocation");
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: 'binary'
49 is_nullable: 0
50 size: 16
51  
52 =head2 name
53  
54 data_type: 'char'
55 default_value: (empty string)
56 is_nullable: 0
57 size: 255
58  
59 =head2 type
60  
61 data_type: 'enum'
62 default_value: 'regular'
63 extra: {list => ["regular","shared","virtual","router","point2point"]}
64 is_nullable: 0
65  
66 =cut
67  
68 2 __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 { data_type => "binary", is_nullable => 0, size => 16 },
79 "name",
80 { data_type => "char", default_value => "", is_nullable => 0, size => 255 },
81 "type",
82 {
83 data_type => "enum",
84 default_value => "regular",
85 extra => {
86 list => ["regular", "shared", "virtual", "router", "point2point"],
87 },
88 is_nullable => 0,
89 },
90 );
91  
92 =head1 PRIMARY KEY
93  
94 =over 4
95  
96 =item * L</object_id>
97  
98 =item * L</ip>
99  
100 =back
101  
102 =cut
103  
104 2 __PACKAGE__->set_primary_key("object_id", "ip");
105  
106 =head1 RELATIONS
107  
108 =head2 object
109  
110 Type: belongs_to
111  
112 Related object: L<Schema::RackTables::0_20_11::Result::Object>
113  
114 =cut
115  
116 2 __PACKAGE__->belongs_to(
117 "object",
118 "Schema::RackTables::0_20_11::Result::Object",
119 { id => "object_id" },
120 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
121 );
122  
123  
124 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2016-05-12 22:07:10
125 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eX6/k22czcNvCDXxMfR+kw
126  
127  
128 # You can replace this text with custom code or comments, and it will be preserved on regeneration
129 2 1;
« RackTables/0_20_11/Result/IPv6Address.pm ↑ Summary RackTables/0_20_11/Result/IPv6Log.pm »