| 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; | |