Commit | Line | Data |
---|---|---|
56652073 | 1 | package # hide from PAUSE |
2 | DBICTest::Schema::Artist; | |
3 | ||
4 | use base 'DBIx::Class::Core'; | |
5 | ||
6 | __PACKAGE__->table('artist_washed_up'); | |
7 | __PACKAGE__->add_columns( | |
8 | 'fk_artistid' => { | |
9 | data_type => 'integer', | |
10 | is_auto_increment => 1, | |
11 | }, | |
12 | ); | |
13 | ||
14 | __PACKAGE__->set_primary_key('fk_artistid'); | |
15 | __PACKAGE__->belongs_to( | |
16 | 'artist', 'DBICTest::Schema::Artist', | |
17 | { 'foreign.artistid' => 'self.fk_artistid' } | |
18 | ); | |
19 | ||
20 | 1; |