1 # This file has been auto-generated. Do not modify it; it will be overwritten
2 # by rose_auto_create_model.pl automatically.
3 package SL::DB::ShopImage;
7 use parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('shop_images');
11 __PACKAGE__->meta->columns(
12 file_id => { type => 'integer' },
13 id => { type => 'serial', not_null => 1 },
14 itime => { type => 'timestamp', default => 'now()' },
15 mtime => { type => 'timestamp' },
16 object_id => { type => 'text', not_null => 1 },
17 org_file_height => { type => 'integer' },
18 org_file_width => { type => 'integer' },
19 position => { type => 'integer' },
20 thumbnail_content => { type => 'bytea' },
21 thumbnail_content_type => { type => 'text' },
24 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
26 __PACKAGE__->meta->allow_inline_column_values(1);
28 __PACKAGE__->meta->foreign_keys(
30 class => 'SL::DB::File',
31 key_columns => { file_id => 'id' },