Parser correct; test includes failure, shorter query tests; new test schema for bad...
[dbsrgits/DBIx-Class.git] / t / lib / ViewDepsBad / Result / Artwork.pm
1 package    # hide from PAUSE
2     ViewDepsBad::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
18 __PACKAGE__->belongs_to( 'cd', 'ViewDepsBad::Result::CD',
19     { "foreign.id" => "self.cd" },
20 );
21
22 1;