1 package # hide from PAUSE
2 DBICTest::Schema::Year2000CDs;
5 use base qw/DBICTest::BaseResult/;
7 __PACKAGE__->table_class('DBIx::Class::ResultSource::View');
9 __PACKAGE__->table('year2000cds');
10 __PACKAGE__->result_source_instance->view_definition(
11 "SELECT cdid, artist, title FROM cd WHERE year ='2000'"
13 __PACKAGE__->add_columns(
15 data_type => 'integer',
16 is_auto_increment => 1,
19 data_type => 'integer',
22 data_type => 'varchar',
27 __PACKAGE__->set_primary_key('cdid');
28 __PACKAGE__->add_unique_constraint([ qw/artist title/ ]);