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

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 28 / 28 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/IPv4Network.pm ↑ Summary blib/lib/RackTables/Schema/Result/IPv4RSPool.pm »
1 package RackTables::Schema::Result::IPv4RS;
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::IPv4RS
18  
19 =cut
20  
21 1 __PACKAGE__->table("IPv4RS");
22  
23 =head1 ACCESSORS
24  
25 =head2 id
26  
27 data_type: 'integer'
28 extra: {unsigned => 1}
29 is_auto_increment: 1
30 is_nullable: 0
31  
32 =head2 inservice
33  
34 data_type: 'enum'
35 default_value: 'no'
36 extra: {list => ["yes","no"]}
37 is_nullable: 0
38  
39 =head2 rsip
40  
41 data_type: 'integer'
42 extra: {unsigned => 1}
43 is_nullable: 1
44  
45 =head2 rsport
46  
47 data_type: 'smallint'
48 extra: {unsigned => 1}
49 is_nullable: 1
50  
51 =head2 rspool_id
52  
53 data_type: 'integer'
54 extra: {unsigned => 1}
55 is_foreign_key: 1
56 is_nullable: 1
57  
58 =head2 rsconfig
59  
60 data_type: 'text'
61 is_nullable: 1
62  
63 =cut
64  
65 1 __PACKAGE__->add_columns(
66 "id",
67 {
68 data_type => "integer",
69 extra => { unsigned => 1 },
70 is_auto_increment => 1,
71 is_nullable => 0,
72 },
73 "inservice",
74 {
75 data_type => "enum",
76 default_value => "no",
77 extra => { list => ["yes", "no"] },
78 is_nullable => 0,
79 },
80 "rsip",
81 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 },
82 "rsport",
83 { data_type => "smallint", extra => { unsigned => 1 }, is_nullable => 1 },
84 "rspool_id",
85 {
86 data_type => "integer",
87 extra => { unsigned => 1 },
88 is_foreign_key => 1,
89 is_nullable => 1,
90 },
91 "rsconfig",
92 { data_type => "text", is_nullable => 1 },
93 );
94 1 __PACKAGE__->set_primary_key("id");
95 1 __PACKAGE__->add_unique_constraint("pool-endpoint", ["rspool_id", "rsip", "rsport"]);
96  
97 =head1 RELATIONS
98  
99 =head2 rspool
100  
101 Type: belongs_to
102  
103 Related object: L<RackTables::Schema::Result::IPv4RSPool>
104  
105 =cut
106  
107 1 __PACKAGE__->belongs_to(
108 "rspool",
109 "RackTables::Schema::Result::IPv4RSPool",
110 { id => "rspool_id" },
111 {
112 is_deferrable => 1,
113 join_type => "LEFT",
114 on_delete => "CASCADE",
115 on_update => "CASCADE",
116 },
117 );
118  
119  
120 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
121 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BgaWrWeJqebTFq+5rbVuOg
122  
123  
124 # You can replace this text with custom code or comments, and it will be preserved on regeneration
125 1 __PACKAGE__->meta->make_immutable;
126 1 1;
« blib/lib/RackTables/Schema/Result/IPv4Network.pm ↑ Summary blib/lib/RackTables/Schema/Result/IPv4RSPool.pm »