Separate db for auditing in tests
[dbsrgits/DBIx-Class-Journal.git] / t / lib / DBICTest / Schema / Track.pm
CommitLineData
b5851590 1package # hide from PAUSE
2 DBICTest::Schema::Track;
3
4use base 'DBIx::Class::Core';
5
6__PACKAGE__->table('track');
7__PACKAGE__->add_columns(
8 'trackid' => {
9 data_type => 'integer',
10 is_auto_increment => 1,
11 },
12 'cd' => {
13 data_type => 'integer',
14 },
15 'position' => {
16 data_type => 'integer',
17 accessor => 'pos',
18 },
19 'title' => {
20 data_type => 'varchar',
21 size => 100,
22 },
23);
24__PACKAGE__->set_primary_key('trackid');
25
26__PACKAGE__->add_unique_constraint([ qw/cd position/ ]);
27__PACKAGE__->add_unique_constraint([ qw/cd title/ ]);
28
29__PACKAGE__->belongs_to( cd => 'DBICTest::Schema::CD' );
30__PACKAGE__->belongs_to( disc => 'DBICTest::Schema::CD' => 'cd');
31
321;