1 package MyApp::Schema::Result::Track;
6 use base qw( DBIx::Class::Core );
8 __PACKAGE__->table('track');
10 __PACKAGE__->add_columns(
12 data_type => 'integer',
13 is_auto_increment => 1
16 data_type => 'integer',
23 __PACKAGE__->set_primary_key('trackid');
25 __PACKAGE__->add_unique_constraint([qw( title cdid )]);
27 __PACKAGE__->belongs_to('cd' => 'MyApp::Schema::Result::Cd', 'cdid');