fixed test resultclass formatting, added a few more DBIC::Storage::DBI methods that...
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / Artwork.pm
CommitLineData
d5633096 1package # hide from PAUSE
4f6386b0 2 DBICTest::Schema::Artwork;
3
660cf1be 4use base qw/DBICTest::BaseResult/;
4f6386b0 5
6__PACKAGE__->table('cd_artwork');
7__PACKAGE__->add_columns(
8 'cd_id' => {
9 data_type => 'integer',
9c3018b6 10 is_nullable => 0,
4f6386b0 11 },
12);
13__PACKAGE__->set_primary_key('cd_id');
14__PACKAGE__->belongs_to('cd', 'DBICTest::Schema::CD', 'cd_id');
15__PACKAGE__->has_many('images', 'DBICTest::Schema::Image', 'artwork_id');
16
d5633096 17__PACKAGE__->has_many('artwork_to_artist', 'DBICTest::Schema::Artwork_to_Artist', 'artwork_cd_id');
18__PACKAGE__->many_to_many('artists', 'artwork_to_artist', 'artist');
19
4f6386b0 201;