Commit | Line | Data |
7364d776 |
1 | package # hide from PAUSE |
2 | ViewDeps::Result::Artwork; |
3 | |
4 | use strict; |
5 | use warnings; |
6 | use base 'DBIx::Class::Core'; |
7 | |
8 | __PACKAGE__->table('artwork'); |
9 | |
10 | __PACKAGE__->add_columns( |
11 | id => { data_type => 'integer', is_auto_increment => 1 }, |
12 | cd => { data_type => 'integer' }, |
13 | file => { data_type => 'text' }, |
14 | ); |
15 | |
16 | __PACKAGE__->set_primary_key('id'); |
17 | |
f54cb4d6 |
18 | __PACKAGE__->refers_to( 'cd', 'ViewDeps::Result::CD', |
7364d776 |
19 | { "foreign.id" => "self.cd" }, |
20 | ); |
21 | |
22 | 1; |