RackTables/0_20_6/Result/MuninGraph.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 22 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 Schema::RackTables::0_20_6::Result::MuninGraph;
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_6::Result::MuninGraph
10  
11 =cut
12  
13 use strict;
14 use warnings;
15  
16 use base 'DBIx::Class::Core';
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 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<MuninGraph>
31  
32 =cut
33  
34 __PACKAGE__->table("MuninGraph");
35  
36 =head1 ACCESSORS
37  
38 =head2 object_id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_foreign_key: 1
43 is_nullable: 0
44  
45 =head2 server_id
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_foreign_key: 1
50 is_nullable: 0
51  
52 =head2 graph
53  
54 data_type: 'char'
55 is_nullable: 0
56 size: 255
57  
58 =head2 caption
59  
60 data_type: 'char'
61 is_nullable: 1
62 size: 255
63  
64 =cut
65  
66 __PACKAGE__->add_columns(
67 "object_id",
68 {
69 data_type => "integer",
70 extra => { unsigned => 1 },
71 is_foreign_key => 1,
72 is_nullable => 0,
73 },
74 "server_id",
75 {
76 data_type => "integer",
77 extra => { unsigned => 1 },
78 is_foreign_key => 1,
79 is_nullable => 0,
80 },
81 "graph",
82 { data_type => "char", is_nullable => 0, size => 255 },
83 "caption",
84 { data_type => "char", is_nullable => 1, size => 255 },
85 );
86  
87 =head1 PRIMARY KEY
88  
89 =over 4
90  
91 =item * L</object_id>
92  
93 =item * L</server_id>
94  
95 =item * L</graph>
96  
97 =back
98  
99 =cut
100  
101 __PACKAGE__->set_primary_key("object_id", "server_id", "graph");
102  
103 =head1 RELATIONS
104  
105 =head2 object
106  
107 Type: belongs_to
108  
109 Related object: L<Schema::RackTables::0_20_6::Result::Object>
110  
111 =cut
112  
113 __PACKAGE__->belongs_to(
114 "object",
115 "Schema::RackTables::0_20_6::Result::Object",
116 { id => "object_id" },
117 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
118 );
119  
120 =head2 server
121  
122 Type: belongs_to
123  
124 Related object: L<Schema::RackTables::0_20_6::Result::MuninServer>
125  
126 =cut
127  
128 __PACKAGE__->belongs_to(
129 "server",
130 "Schema::RackTables::0_20_6::Result::MuninServer",
131 { id => "server_id" },
132 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
133 );
134  
135  
136 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:19
137 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RWX1BRoNyX7rzPd4iMO6Tg
138  
139  
140 # You can replace this text with custom code or comments, and it will be preserved on regeneration
141 1;