1 package # hide from PAUSE
2 RestTest::Schema::Result::Artist;
4 use base 'DBIx::Class';
6 __PACKAGE__->load_components('Core');
7 __PACKAGE__->table('artist');
8 __PACKAGE__->add_columns(
10 data_type => 'integer',
11 is_auto_increment => 1,
14 data_type => 'varchar',
19 __PACKAGE__->set_primary_key('artistid');
21 __PACKAGE__->has_many(
22 cds => 'RestTest::Schema::Result::CD', undef,
23 { order_by => 'year' },