0d832ca8366d941e05ca988c996ef32d1498ff42
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Artwork_to_Artist.pm
1 package # hide from PAUSE
2     DBICTest::Schema::Artwork_to_Artist;
3
4 use base qw/DBIx::Class::Core/;
5
6 __PACKAGE__->table('artwork_to_artist');
7 __PACKAGE__->add_columns(
8   'artwork_cd_id' => {
9     data_type => 'integer',
10     is_foreign_key => 1,
11   },
12   'artist_id' => {
13     data_type => 'integer',
14     is_foreign_key => 1,
15   },
16 );
17 __PACKAGE__->set_primary_key(qw/artwork_cd_id artist_id/);
18 __PACKAGE__->belongs_to('artwork', 'DBICTest::Schema::Artwork', 'artwork_cd_id');
19 __PACKAGE__->belongs_to('artist', 'DBICTest::Schema::Artist', 'artist_id');
20
21 1;