blib/lib/App/Netdisco/DB/Result/DeviceModule.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 package App::Netdisco::DB::Result::DeviceModule;
3  
4  
5 use strict;
6 use warnings;
7  
8 use base 'App::Netdisco::DB::Result';
9 __PACKAGE__->table("device_module");
10 __PACKAGE__->add_columns(
11 "ip",
12 { data_type => "inet", is_nullable => 0 },
13 "index",
14 { data_type => "integer", is_nullable => 0 },
15 "description",
16 { data_type => "text", is_nullable => 1 },
17 "type",
18 { data_type => "text", is_nullable => 1 },
19 "parent",
20 { data_type => "integer", is_nullable => 1 },
21 "name",
22 { data_type => "text", is_nullable => 1 },
23 "class",
24 { data_type => "text", is_nullable => 1 },
25 "pos",
26 { data_type => "integer", is_nullable => 1 },
27 "hw_ver",
28 { data_type => "text", is_nullable => 1 },
29 "fw_ver",
30 { data_type => "text", is_nullable => 1 },
31 "sw_ver",
32 { data_type => "text", is_nullable => 1 },
33 "serial",
34 { data_type => "text", is_nullable => 1 },
35 "model",
36 { data_type => "text", is_nullable => 1 },
37 "fru",
38 { data_type => "boolean", is_nullable => 1 },
39 "creation",
40 {
41 data_type => "timestamp",
42 default_value => \"LOCALTIMESTAMP",
43 is_nullable => 1,
44 original => { default_value => \"LOCALTIMESTAMP" },
45 },
46 "last_discover",
47 { data_type => "timestamp", is_nullable => 1 },
48 );
49 __PACKAGE__->set_primary_key("ip", "index");
50  
51  
52  
53 =head1 RELATIONSHIPS
54  
55 =head2 device
56  
57 Returns the entry from the C<device> table on which this VLAN entry was discovered.
58  
59 =cut
60  
61 __PACKAGE__->belongs_to( device => 'App::Netdisco::DB::Result::Device', 'ip' );
62  
63 1;