First attempt to make extended_rels work.
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / Genre.pm
1 package DBICTest::Schema::Genre;
2
3 use strict;
4
5 use base qw/DBICTest::BaseResult/;
6
7 __PACKAGE__->table('genre');
8 __PACKAGE__->add_columns(
9     genreid => {
10       data_type => 'integer',
11       is_auto_increment => 1,
12     },
13     name => {
14       data_type => 'varchar',
15       size => 100,
16     },
17 );
18 __PACKAGE__->set_primary_key('genreid');
19 __PACKAGE__->add_unique_constraint ( genre_name => [qw/name/] );
20
21 __PACKAGE__->has_many (cds => 'DBICTest::Schema::CD', 'genreid');
22
23 __PACKAGE__->has_one (model_cd => 'DBICTest::Schema::CD', 'genreid');
24
25 1;