package MyApp::Schema::Result::Comment; use base qw/DBIx::Class::Core/; __PACKAGE__->table('comment'); __PACKAGE__->add_columns( id => {data_type => 'integer',is_auto_increment => 1,}, # e.g. comment for Play, or Concert, example value: "play" context => {data_type => 'text'}, ); __PACKAGE__->belongs_to ( # XXX can be Play or Concert or ... parent => 'MyApp::Schema::Result::XXX', 'YYY' # FK_id? for ids of Play or Concert or ...? );