package MyStar;

require './t/testlib/MyBase.pm';
require './t/testlib/MyStarLink.pm';
@ISA = 'MyBase';
use strict;

__PACKAGE__->set_table();
__PACKAGE__->columns(All => qw/starid name/);
__PACKAGE__->has_many(films => [ MyStarLink => 'film' ] => 'star');

# sub films { map $_->film, shift->_films }


sub create_sql { 
  return qq{
    starid  TINYINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    name   VARCHAR(255)
  };
}

1;

