1 package # hide from PAUSE
11 # This is a many-to-many mapping table that uses the two foreign keys
12 # as its own primary key - there's no extra 'auto-inc' column here
14 __PACKAGE__->set_table();
15 __PACKAGE__->columns(Primary => qw/film star/);
16 __PACKAGE__->columns(All => qw/film star/);
17 __PACKAGE__->has_a(film => 'MyFilm');
18 __PACKAGE__->has_a(star => 'MyStar');
22 film INTEGER NOT NULL,
23 star INTEGER NOT NULL,
24 PRIMARY KEY (film, star)