diff --git a/lib/MyIMDB/Models/UserRoles.pm b/lib/MyIMDB/Models/UserRoles.pm new file mode 100644 index 0000000..99b02c7 --- /dev/null +++ b/lib/MyIMDB/Models/UserRoles.pm @@ -0,0 +1,15 @@ +package UserRoles; + +use strict; +use warnings; + +use base 'MyIMDB::Models::Object'; + +__PACKAGE__->meta->setup( + table => 'user_roles', + columns => [ qw(user_id role_id) ], + pk_columns => [ qw(user_id role_id) ], + foreign_keys => [ qw(users roles) ], +); + +1;