package MPDatabase::Author; use strict; use base 'MPDatabase::DBI'; __PACKAGE__->table('author'); __PACKAGE__->columns(Primary => qw/authorId/); __PACKAGE__->columns(All => qw/authorId author email/); __PACKAGE__->has_many(articles => 'MPDatabase::Article'); 1;