Commit | Line | Data |
---|---|---|
445e5e31 | 1 | package DBICTest::Schema::Event; |
2 | ||
cb9fdccb | 3 | use strict; |
4 | use warnings; | |
ff657a43 | 5 | use base qw/DBIx::Class::Core/; |
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 }, | |
13 | starts_at => { data_type => 'datetime' } | |
14 | ); | |
15 | ||
16 | __PACKAGE__->set_primary_key('id'); | |
17 | ||
18 | 1; |