RackTables/0_18_0/Result/IPv4RS.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« RackTables/0_18_0/Result/IPv4Network.pm ↑ Summary RackTables/0_18_0/Result/IPv4RSPool.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_18_0::Result::IPv4RS;
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_0::Result::IPv4RS
10  
11 =cut
12  
13 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 ▶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 1 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<IPv4RS>
31  
32 =cut
33  
34 1 __PACKAGE__->table("IPv4RS");
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 inservice
46  
47 data_type: 'enum'
48 default_value: 'no'
49 extra: {list => ["yes","no"]}
50 is_nullable: 0
51  
52 =head2 rsip
53  
54 data_type: 'integer'
55 extra: {unsigned => 1}
56 is_nullable: 1
57  
58 =head2 rsport
59  
60 data_type: 'smallint'
61 extra: {unsigned => 1}
62 is_nullable: 1
63  
64 =head2 rspool_id
65  
66 data_type: 'integer'
67 extra: {unsigned => 1}
68 is_foreign_key: 1
69 is_nullable: 1
70  
71 =head2 rsconfig
72  
73 data_type: 'text'
74 is_nullable: 1
75  
76 =cut
77  
78 1 __PACKAGE__->add_columns(
79 "id",
80 {
81 data_type => "integer",
82 extra => { unsigned => 1 },
83 is_auto_increment => 1,
84 is_nullable => 0,
85 },
86 "inservice",
87 {
88 data_type => "enum",
89 default_value => "no",
90 extra => { list => ["yes", "no"] },
91 is_nullable => 0,
92 },
93 "rsip",
94 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 },
95 "rsport",
96 { data_type => "smallint", extra => { unsigned => 1 }, is_nullable => 1 },
97 "rspool_id",
98 {
99 data_type => "integer",
100 extra => { unsigned => 1 },
101 is_foreign_key => 1,
102 is_nullable => 1,
103 },
104 "rsconfig",
105 { data_type => "text", is_nullable => 1 },
106 );
107  
108 =head1 PRIMARY KEY
109  
110 =over 4
111  
112 =item * L</id>
113  
114 =back
115  
116 =cut
117  
118 1 __PACKAGE__->set_primary_key("id");
119  
120 =head1 UNIQUE CONSTRAINTS
121  
122 =head2 C<pool-endpoint>
123  
124 =over 4
125  
126 =item * L</rspool_id>
127  
128 =item * L</rsip>
129  
130 =item * L</rsport>
131  
132 =back
133  
134 =cut
135  
136 1 __PACKAGE__->add_unique_constraint("pool-endpoint", ["rspool_id", "rsip", "rsport"]);
137  
138 =head1 RELATIONS
139  
140 =head2 rspool
141  
142 Type: belongs_to
143  
144 Related object: L<Schema::RackTables::0_18_0::Result::IPv4RSPool>
145  
146 =cut
147  
148 1 __PACKAGE__->belongs_to(
149 "rspool",
150 "Schema::RackTables::0_18_0::Result::IPv4RSPool",
151 { id => "rspool_id" },
152 {
153 is_deferrable => 1,
154 join_type => "LEFT",
155 on_delete => "CASCADE",
156 on_update => "RESTRICT",
157 },
158 );
159  
160  
161 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:44
162 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jo6skxMLfImreoHR83lsig
163  
164  
165 # You can replace this text with custom code or comments, and it will be preserved on regeneration
166 1 1;
« RackTables/0_18_0/Result/IPv4Network.pm ↑ Summary RackTables/0_18_0/Result/IPv4RSPool.pm »