added TODO test: call accessors when create()ing a row
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / Event.pm
CommitLineData
445e5e31 1package DBICTest::Schema::Event;
2
cb9fdccb 3use strict;
4use warnings;
660cf1be 5use base qw/DBICTest::BaseResult/;
445e5e31 6
ff657a43 7__PACKAGE__->load_components(qw/InflateColumn::DateTime/);
cb9fdccb 8
9__PACKAGE__->table('event');
10
11__PACKAGE__->add_columns(
12 id => { data_type => 'integer', is_auto_increment => 1 },
40f75181 13 starts_at => { data_type => 'datetime' },
a97fe7e0 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 },
a0dd8679 17 skip_inflation => { data_type => 'datetime', inflate_datetime => 0, is_nullable => 1 },
65b386df 18 ts_without_tz => { data_type => 'datetime', is_nullable => 1 }, # used in EventTZPg
cb9fdccb 19);
20
21__PACKAGE__->set_primary_key('id');
22
231;