1package # hide from PAUSE 2 DBICTest::Schema::Lyrics; 3 4use base qw/DBICTest::BaseResult/; 5 6__PACKAGE__->table('lyrics'); 7__PACKAGE__->add_columns( 8 'lyric_id' => { 9 data_type => 'integer', 10 is_auto_increment => 1, 11 }, 12 'track_id' => { 13 data_type => 'integer', 14 is_foreign_key => 1, 15 }, 16); 17__PACKAGE__->set_primary_key('lyric_id'); 18__PACKAGE__->belongs_to('track', 'DBICTest::Schema::Track', 'track_id'); 19__PACKAGE__->has_many('lyric_versions', 'DBICTest::Schema::LyricVersion', 'lyric_id'); 20 211; 22