line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
1265
|
use utf8; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
16
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package AproJo::DB::Schema::Result::TimeEntry; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
68
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
51
|
|
6
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
56
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
10
|
use base 'DBIx::Class::Core'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
499
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
__PACKAGE__->table('time_entries'); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
13
|
|
|
|
|
|
|
'time_entry_id', |
14
|
|
|
|
|
|
|
{data_type => 'integer', is_auto_increment => 1, is_nullable => 0}, |
15
|
|
|
|
|
|
|
'start', |
16
|
|
|
|
|
|
|
{ |
17
|
|
|
|
|
|
|
data_type => 'datetime', |
18
|
|
|
|
|
|
|
datetime_undef_if_invalid => 1, |
19
|
|
|
|
|
|
|
default_value => '1900-01-01 00:00:00', |
20
|
|
|
|
|
|
|
is_nullable => 0, |
21
|
|
|
|
|
|
|
}, |
22
|
|
|
|
|
|
|
'end', |
23
|
|
|
|
|
|
|
{ |
24
|
|
|
|
|
|
|
data_type => 'datetime', |
25
|
|
|
|
|
|
|
datetime_undef_if_invalid => 1, |
26
|
|
|
|
|
|
|
default_value => '1900-01-01 00:00:00', |
27
|
|
|
|
|
|
|
is_nullable => 0, |
28
|
|
|
|
|
|
|
}, |
29
|
|
|
|
|
|
|
'duration', |
30
|
|
|
|
|
|
|
{data_type => 'integer', default_value => 0, is_nullable => 0}, |
31
|
|
|
|
|
|
|
'user_id', |
32
|
|
|
|
|
|
|
{data_type => 'integer', is_nullable => 0, is_foreign_key => 1}, |
33
|
|
|
|
|
|
|
'order_id', |
34
|
|
|
|
|
|
|
{data_type => 'integer', is_nullable => 0, is_foreign_key => 1}, |
35
|
|
|
|
|
|
|
'orderitem_id', |
36
|
|
|
|
|
|
|
{data_type => 'integer', is_nullable => 0, is_foreign_key => 1}, |
37
|
|
|
|
|
|
|
'description', |
38
|
|
|
|
|
|
|
{data_type => 'text', default_value => '', is_nullable => 1}, |
39
|
|
|
|
|
|
|
'comment', |
40
|
|
|
|
|
|
|
{data_type => 'text', default_value => '', is_nullable => 1}, |
41
|
|
|
|
|
|
|
'comment_type', |
42
|
|
|
|
|
|
|
{data_type => 'tinyint', default_value => 0, is_nullable => 0}, |
43
|
|
|
|
|
|
|
'cleared', |
44
|
|
|
|
|
|
|
{data_type => 'tinyint', default_value => 0, is_nullable => 0}, |
45
|
|
|
|
|
|
|
'location', |
46
|
|
|
|
|
|
|
{data_type => 'varchar', default_value => '', is_nullable => 1, size => 50}, |
47
|
|
|
|
|
|
|
'approved', |
48
|
|
|
|
|
|
|
{data_type => 'decimal', is_nullable => 1, size => [10, 2]}, |
49
|
|
|
|
|
|
|
'status_id', |
50
|
|
|
|
|
|
|
{data_type => 'smallint', default_value => 0, is_nullable => 0, is_foreign_key => 1}, |
51
|
|
|
|
|
|
|
'billable', |
52
|
|
|
|
|
|
|
{data_type => 'tinyint', default_value => 1, is_nullable => 1}, |
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key('time_entry_id'); |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
__PACKAGE__->has_one('orderitem', 'AproJo::DB::Schema::Result::Orderitem', |
58
|
|
|
|
|
|
|
'orderitem_id'); |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |