Now throws exceptions when id_field is invalid or can not be determined
[catagits/Catalyst-Authentication-Store-DBIx-Class.git] / t / lib / TestApp / Schema / User.pm
CommitLineData
ad93b3e9 1package TestApp::Schema::User;
2
3use strict;
4use warnings;
5use base 'DBIx::Class';
6
7__PACKAGE__->load_components(qw/ Core /);
8
9__PACKAGE__->table( 'user' );
10__PACKAGE__->add_columns( qw/id username email password status role_text session_data/ );
11__PACKAGE__->set_primary_key( 'id' );
12
13__PACKAGE__->has_many( 'map_user_role' => 'TestApp::Schema::UserRole' => 'user' );
14
15__PACKAGE__->many_to_many( roles => 'map_user_role', 'role');
16
171;