package MusicApp::Schema::Result::AlbumSong; use strict; use warnings; use base qw/DBIx::Class::Core/; __PACKAGE__->table('album_songs'); __PACKAGE__->add_columns( album_id => { data_type => 'integer', is_nullable => 0, }, song_id => { data_type => 'integer', is_nullable => 0, }, ); __PACKAGE__->belongs_to(album => 'MusicApp::Schema::Result::Album', 'album_id'); __PACKAGE__->belongs_to(song => 'MusicApp::Schema::Result::Song', 'song_id'); 1; # Return true value at end of modules