1 package DBICTest::Schema::Demographic;
5 use base 'DBIx::Class::Core';
7 __PACKAGE__->table('demographic');
8 __PACKAGE__->add_columns(
10 data_type => 'integer',
11 is_auto_increment => 1,
14 data_type => 'varchar',
18 __PACKAGE__->set_primary_key('demographicid');
19 __PACKAGE__->add_unique_constraint ( demographic_name => [qw/name/] );