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::RequirementSpecPicture;
 
   7 use base qw(SL::DB::Object);
 
   9 __PACKAGE__->meta->table('requirement_spec_pictures');
 
  11 __PACKAGE__->meta->columns(
 
  12   description            => { type => 'text' },
 
  13   id                     => { type => 'serial', not_null => 1 },
 
  14   itime                  => { type => 'timestamp', default => 'now()', not_null => 1 },
 
  15   mtime                  => { type => 'timestamp' },
 
  16   number                 => { type => 'text', not_null => 1 },
 
  17   picture_content        => { type => 'bytea', not_null => 1 },
 
  18   picture_content_type   => { type => 'text', not_null => 1 },
 
  19   picture_file_name      => { type => 'text', not_null => 1 },
 
  20   picture_height         => { type => 'integer', not_null => 1 },
 
  21   picture_mtime          => { type => 'timestamp', default => 'now()', not_null => 1 },
 
  22   picture_width          => { type => 'integer', not_null => 1 },
 
  23   position               => { type => 'integer', not_null => 1 },
 
  24   requirement_spec_id    => { type => 'integer', not_null => 1 },
 
  25   text_block_id          => { type => 'integer', not_null => 1 },
 
  26   thumbnail_content      => { type => 'bytea', not_null => 1 },
 
  27   thumbnail_content_type => { type => 'text', not_null => 1 },
 
  28   thumbnail_height       => { type => 'integer', not_null => 1 },
 
  29   thumbnail_width        => { type => 'integer', not_null => 1 },
 
  32 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
  34 __PACKAGE__->meta->allow_inline_column_values(1);
 
  36 __PACKAGE__->meta->foreign_keys(
 
  38     class       => 'SL::DB::RequirementSpec',
 
  39     key_columns => { requirement_spec_id => 'id' },
 
  43     class       => 'SL::DB::RequirementSpecTextBlock',
 
  44     key_columns => { text_block_id => 'id' },