1 package # hide from PAUSE
2 ViewDeps::Result::Artist;
6 use base 'DBIx::Class::Core';
8 __PACKAGE__->table('artist');
10 __PACKAGE__->add_columns(
11 id => { data_type => 'integer', is_auto_increment => 1 },
12 name => { data_type => 'text' },
15 __PACKAGE__->set_primary_key('id');
17 __PACKAGE__->has_many( 'cds', 'ViewDeps::Result::CD',
18 { "foreign.artist" => "self.id" },