1 package # hide from PAUSE
2 DBICTest::Schema::Year2000CDs;
5 use base qw/DBICTest::BaseResult/;
6 use DBIx::Class::ResultSource::View;
8 __PACKAGE__->table_class('DBIx::Class::ResultSource::View');
10 __PACKAGE__->table('year2000cds');
11 __PACKAGE__->result_source_instance->view_definition(
12 "SELECT cdid, artist, title FROM cd WHERE year ='2000'"
14 __PACKAGE__->add_columns(
16 data_type => 'integer',
17 is_auto_increment => 1,
20 data_type => 'integer',
23 data_type => 'varchar',
28 __PACKAGE__->set_primary_key('cdid');
29 __PACKAGE__->add_unique_constraint([ qw/artist title/ ]);