1 package MyApp2::Schema::Result::Artist;
2 use base qw/DBIx::Class::Core/;
4 __PACKAGE__->table('artist');
5 __PACKAGE__->add_columns(qw/ artistid name /);
6 __PACKAGE__->set_primary_key('artistid');
7 __PACKAGE__->has_many(cds => 'MyApp2::Schema::Result::CD', 'artistid');