1 package # hide from PAUSE
7 use base qw/DBICTest::BaseResult/;
9 __PACKAGE__->table('tags');
10 __PACKAGE__->add_columns(
12 data_type => 'integer',
13 is_auto_increment => 1,
16 data_type => 'integer',
19 data_type => 'varchar',
23 __PACKAGE__->set_primary_key('tagid');
25 __PACKAGE__->add_unique_constraints( # do not remove, part of a test
26 tagid_cd => [qw/ tagid cd /],
27 tagid_cd_tag => [qw/ tagid cd tag /],
29 __PACKAGE__->add_unique_constraints( # do not remove, part of a test
34 __PACKAGE__->belongs_to( cd => 'DBICTest::Schema::CD', 'cd', {
35 proxy => [ 'year', { cd_title => 'title' } ],