DBIx-Class-TemporalRelations

 view release on metacpan or  search on metacpan

t/lib/TestSchema/Result/Doodad.pm  view on Meta::CPAN

package TestSchema::Result::Doodad;
use Modern::Perl;
use parent qw(DBIx::Class::Core);

__PACKAGE__->table('doodad');
__PACKAGE__->add_columns(qw/id description created_dt created_by/);
__PACKAGE__->add_columns(
  modified_dt => { is_nullable => 1, },
  modified_by => { is_nullable => 1, },
);
__PACKAGE__->set_primary_key('id');
__PACKAGE__->belongs_to( 'created_by'  => 'TestSchema::Result::Human', 'id' );
__PACKAGE__->belongs_to( 'modified_by' => 'TestSchema::Result::Human', 'id' );

1;

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.492 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )