Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Image.pm
1 package # hide from PAUSE
2     DBICTest::Schema::Image;
3
4 use warnings;
5 use strict;
6
7 use base qw/DBICTest::BaseResult/;
8
9 __PACKAGE__->table('images');
10 __PACKAGE__->add_columns(
11   'id' => {
12     data_type => 'integer',
13     is_auto_increment => 1,
14   },
15   'artwork_id' => {
16     data_type => 'integer',
17     is_foreign_key => 1,
18   },
19   'name' => {
20     data_type => 'varchar',
21     size => 100,
22   },
23   'data' => {
24     data_type => 'blob',
25     is_nullable => 1,
26   },
27 );
28 __PACKAGE__->set_primary_key('id');
29 __PACKAGE__->belongs_to('artwork', 'DBICTest::Schema::Artwork', 'artwork_id');
30
31 1;