Commit | Line | Data |
b974984a |
1 | package DBICTest::Schema::Event; |
2 | |
3 | use strict; |
4 | use warnings; |
5 | use base qw/DBICTest::BaseResult/; |
6 | |
7 | __PACKAGE__->load_components(qw/InflateColumn::DateTime/); |
8 | |
9 | __PACKAGE__->table('event'); |
10 | |
11 | __PACKAGE__->add_columns( |
12 | id => { data_type => 'integer', is_auto_increment => 1 }, |
13 | starts_at => { data_type => 'datetime' }, |
14 | created_on => { data_type => 'timestamp' }, |
15 | varchar_date => { data_type => 'varchar', inflate_date => 1, size => 20, is_nullable => 1 }, |
16 | varchar_datetime => { data_type => 'varchar', inflate_datetime => 1, size => 20, is_nullable => 1 }, |
17 | skip_inflation => { data_type => 'datetime', inflate_datetime => 0, is_nullable => 1 }, |
18 | ts_without_tz => { data_type => 'datetime', is_nullable => 1 }, # used in EventTZPg |
19 | ); |
20 | |
21 | __PACKAGE__->set_primary_key('id'); |
22 | |
23 | 1; |