3182840bf29e8f71cdca9ebbde94ec6a54ff1d7f
[kivitendo-erp.git] / SL / DB / MetaSetup / ShopImage.pm
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;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('shop_images');
10
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' },
22 );
23
24 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
25
26 __PACKAGE__->meta->allow_inline_column_values(1);
27
28 __PACKAGE__->meta->foreign_keys(
29   file => {
30     class       => 'SL::DB::File',
31     key_columns => { file_id => 'id' },
32   },
33 );
34
35 1;
36 ;