1package A::Schema::Result::Artist; 2 3use A::Schema::Candy; 4 5table 'artists'; 6 7primary_column id => { 8 data_type => 'int', 9 is_auto_increment => 1, 10}; 11 12has_column name => ( 13 data_type => 'varchar', 14 size => 25, 15 is_nullable => 1, 16); 17 18has_many albums => 'A::Schema::Result::Album', 'artist_id'; 19 201; 21 22