Hopkins/Store/Schema/Row/TaskOutput.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Hopkins::Store::Schema::Row::TaskOutput;
2  
3 use strict;
4  
5 =head1 NAME
6  
7 Hopkins::Schema::Row::TaskOutput - storage for task output
8  
9 =head1 DESCRIPTION
10  
11 =cut
12  
13 use base 'DBIx::Class';
14  
15 __PACKAGE__->load_components(qw/PK::Auto Core/);
16  
17 __PACKAGE__->table('task_outputs');
18 __PACKAGE__->add_columns(
19 id => {
20 data_type => 'bigint',
21 size => 20,
22 is_nullable => 0,
23 default_value => undef,
24 is_auto_increment => 1,
25 is_foreign_key => 0
26 },
27 task => {
28 data_type => 'char',
29 size => 36,
30 is_nullable => 0,
31 default_value => undef,
32 is_auto_increment => 0,
33 is_foreign_key => 1
34 },
35 text => {
36 data_type => 'text',
37 size => 65535,
38 is_nullable => 0,
39 default_value => undef,
40 is_auto_increment => 0,
41 is_foreign_key => 0
42 }
43 );
44 __PACKAGE__->set_primary_key('id');
45  
46 __PACKAGE__->add_relationship('task', 'Hopkins::Store::Schema::Row::Task',
47 { 'foreign.id' => 'self.task' },
48 { 'accessor' => 'single' }
49 );
50  
51 =back
52  
53 =head1 AUTHOR
54  
55 Mike Eldridge <diz@cpan.org>
56  
57 =cut
58  
59 1;