c3f2e27bba714ccd75fffe2cd722f09ead2ac607
[dbsrgits/DBIx-Class-ResultSource-MultipleTableInheritance.git] / t / lib / CafeInsertion / Result / Coffee.pm
1 package    # hide from PAUSE
2     CafeInsertion::Result::Coffee;
3
4 use strict;
5 use warnings;
6 use parent 'DBIx::Class::Core';
7 use aliased 'DBIx::Class::ResultSource::MultipleTableInheritance' => 'MTI';
8
9 __PACKAGE__->table_class(MTI);
10 __PACKAGE__->table('coffee');
11
12 __PACKAGE__->add_columns(
13     "id",
14     {   data_type         => "integer",
15         is_auto_increment => 1,
16         sequence          => '_coffee_id_seq'
17     },
18     "flavor",
19     { data_type => "text", default_value => "good" },
20 );
21
22 __PACKAGE__->set_primary_key("id");
23
24 1;