Schema support added, DBICTest refactored to use it
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / CD.pm
CommitLineData
a02675cd 1package DBICTest::CD;
2
3use base 'DBIx::Class::Core';
4
5DBICTest::CD->table('cd');
6DBICTest::CD->add_columns(qw/cdid artist title year/);
7DBICTest::CD->set_primary_key('cdid');
8DBICTest::CD->add_relationship(
9 artist => 'DBICTest::Artist',
10 { 'foreign.artistid' => 'self.artist' }
11);
12DBICTest::CD->add_relationship(
13 tracks => 'DBICTest::Track',
14 { 'foreign.cd' => 'self.cdid' }
15);
16DBICTest::CD->add_relationship(
17 tags => 'DBICTest::Tag',
18 { 'foreign.cd' => 'self.cdid' }
19);
20#DBICTest::CD->might_have(liner_notes => 'DBICTest::LinerNotes' => qw/notes/);
21
221;