Commit | Line | Data |
---|---|---|
c8e085ba | 1 | package Cafe::Result::Coffee; |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | use parent 'DBIx::Class::Core'; | |
6 | use aliased 'DBIx::Class::ResultSource::MultipleTableInheritance' => 'MTI'; | |
7 | ||
8 | __PACKAGE__->table_class(MTI); | |
9 | __PACKAGE__->table('coffee'); | |
10 | __PACKAGE__->add_columns( | |
e96b2eeb | 11 | "id", { data_type => "integer", is_auto_increment => 1}, |
c8e085ba | 12 | "flavor", { data_type => "text", default_value => "good" }, |
13 | ); | |
14 | ||
15 | __PACKAGE__->set_primary_key("id"); | |
16 | ||
17 | 1; |