blib/lib/RackTables/Schema/Result/IPv4Network.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/IPv4NAT.pm ↑ Summary blib/lib/RackTables/Schema/Result/IPv4RS.pm »
1 package RackTables::Schema::Result::IPv4Network;
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::IPv4Network
18  
19 =cut
20  
21 1 __PACKAGE__->table("IPv4Network");
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 ip
33  
34 data_type: 'integer'
35 default_value: 0
36 extra: {unsigned => 1}
37 is_nullable: 0
38  
39 =head2 mask
40  
41 data_type: 'integer'
42 default_value: 0
43 extra: {unsigned => 1}
44 is_nullable: 0
45  
46 =head2 name
47  
48 data_type: 'char'
49 is_nullable: 1
50 size: 255
51  
52 =head2 comment
53  
54 data_type: 'text'
55 is_nullable: 1
56  
57 =cut
58  
59 1 __PACKAGE__->add_columns(
60 "id",
61 {
62 data_type => "integer",
63 extra => { unsigned => 1 },
64 is_auto_increment => 1,
65 is_nullable => 0,
66 },
67 "ip",
68 {
69 data_type => "integer",
70 default_value => 0,
71 extra => { unsigned => 1 },
72 is_nullable => 0,
73 },
74 "mask",
75 {
76 data_type => "integer",
77 default_value => 0,
78 extra => { unsigned => 1 },
79 is_nullable => 0,
80 },
81 "name",
82 { data_type => "char", is_nullable => 1, size => 255 },
83 "comment",
84 { data_type => "text", is_nullable => 1 },
85 );
86 1 __PACKAGE__->set_primary_key("id");
87 1 __PACKAGE__->add_unique_constraint("base-len", ["ip", "mask"]);
88  
89 =head1 RELATIONS
90  
91 =head2 vlanipv4s
92  
93 Type: has_many
94  
95 Related object: L<RackTables::Schema::Result::VLANIPv4>
96  
97 =cut
98  
99 1 __PACKAGE__->has_many(
100 "vlanipv4s",
101 "RackTables::Schema::Result::VLANIPv4",
102 { "foreign.ipv4net_id" => "self.id" },
103 { cascade_copy => 0, cascade_delete => 0 },
104 );
105  
106  
107 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
108 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1jeLF6+tg7C8py0elrV9fg
109  
110  
111 # You can replace this text with custom code or comments, and it will be preserved on regeneration
112 1 __PACKAGE__->meta->make_immutable;
113 1 1;
« blib/lib/RackTables/Schema/Result/IPv4NAT.pm ↑ Summary blib/lib/RackTables/Schema/Result/IPv4RS.pm »