1 package MyDatabase::Main::Result::Artist;
6 use base qw/DBIx::Class::Core/;
8 __PACKAGE__->table('artist');
10 __PACKAGE__->add_columns(qw/ artistid name /);
12 __PACKAGE__->set_primary_key('artistid');
14 __PACKAGE__->has_many('cds' => 'MyDatabase::Main::Result::Cd');