1 package TestSchema::UserRole;
5 use base qw( DBIx::Class );
7 __PACKAGE__->load_components("Core");
8 __PACKAGE__->table("user_role");
9 __PACKAGE__->add_columns(
12 default_value => undef,
18 default_value => undef,
23 __PACKAGE__->set_primary_key(qw/user_id role_id/);
24 __PACKAGE__->belongs_to( user => 'TestSchema::User', { id => "user_id" } );
25 __PACKAGE__->belongs_to( role => 'TestSchema::Role', { id => "role_id" } );