AproJo/DB/Schema/Result/Usertime.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« AproJo/DB/Schema/Result/UserRole.pm ↑ Summary AproJo/Form.pm »
1 package AproJo::DB::Schema::Result::Usertime;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 __PACKAGE__->table('usertimes');
9  
10 2 __PACKAGE__->add_columns(
11 'usertimes_id',
12 {data_type => 'integer', is_auto_increment => 1, is_nullable => 0},
13 'user_id',
14 {data_type => 'integer', is_nullable => 0, is_foreign_key => 1},
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 );
32  
33 2 __PACKAGE__->set_primary_key('usertimes_id');
34  
35 2 1;
« AproJo/DB/Schema/Result/UserRole.pm ↑ Summary AproJo/Form.pm »