1 package DBICTest::Schema::Genre;
6 use base qw/DBICTest::BaseResult/;
8 __PACKAGE__->table('genre');
9 __PACKAGE__->add_columns(
11 data_type => 'integer',
12 is_auto_increment => 1,
15 data_type => 'varchar',
19 __PACKAGE__->set_primary_key('genreid');
20 __PACKAGE__->add_unique_constraint ( genre_name => [qw/name/] );
22 __PACKAGE__->has_many (cds => 'DBICTest::Schema::CD', 'genreid');
24 __PACKAGE__->has_one (model_cd => 'DBICTest::Schema::CD', 'genreid');