Commit | Line | Data |
8273e845 |
1 | package # hide from PAUSE |
4f6386b0 |
2 | DBICTest::Schema::Image; |
3 | |
4a233f30 |
4 | use warnings; |
5 | use strict; |
6 | |
660cf1be |
7 | use base qw/DBICTest::BaseResult/; |
4f6386b0 |
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; |