1 package # hide from PAUSE
2 DBICTest::Schema::Producer;
4 use base 'DBIx::Class::Core';
6 __PACKAGE__->table('producer');
7 __PACKAGE__->add_columns(
9 data_type => 'integer',
10 is_auto_increment => 1
13 data_type => 'varchar',
17 __PACKAGE__->set_primary_key('producerid');
18 __PACKAGE__->add_unique_constraint(prod_name => [ qw/name/ ]);
20 __PACKAGE__->has_many(
21 producer_to_cd => 'DBICTest::Schema::CD_to_Producer' => 'producer'