End point clean up and alter forwards to method calls in end points
[catagits/Catalyst-Controller-DBIC-API.git] / t / lib / RestTest / Schema / Result / Artist.pm
CommitLineData
d2739840 1package # hide from PAUSE
2 RestTest::Schema::Result::Artist;
3
4use base 'DBIx::Class';
5
6__PACKAGE__->load_components('Core');
7__PACKAGE__->table('artist');
8__PACKAGE__->add_columns(
9 'artistid' => {
10 data_type => 'integer',
11 is_auto_increment => 1,
12 },
13 'name' => {
14 data_type => 'varchar',
15 size => 100,
16 is_nullable => 1,
17 },
18);
19__PACKAGE__->set_primary_key('artistid');
20
21__PACKAGE__->has_many(
22 cds => 'RestTest::Schema::Result::CD', undef,
23 { order_by => 'year' },
24);
25
261;