1 package TestApp::Schema::UserRole;
5 use base 'DBIx::Class';
7 __PACKAGE__->load_components(qw/ Core /);
9 __PACKAGE__->table( 'user_role' );
10 __PACKAGE__->add_columns( qw/id user roleid/ );
11 __PACKAGE__->set_primary_key( qw/id/ );
13 __PACKAGE__->belongs_to('role', 'TestApp::Schema::Role', { 'foreign.id' => 'self.roleid'});