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::EmailJournal;
 
   7 use parent qw(SL::DB::Object);
 
   9 __PACKAGE__->meta->table('email_journal');
 
  11 __PACKAGE__->meta->columns(
 
  12   body            => { type => 'text', not_null => 1 },
 
  13   extended_status => { type => 'text', not_null => 1 },
 
  14   from            => { type => 'text', not_null => 1 },
 
  15   headers         => { type => 'text', not_null => 1 },
 
  16   id              => { type => 'integer', not_null => 1, sequence => 'email_journal_id_seq1' },
 
  17   itime           => { type => 'timestamp', default => 'now()', not_null => 1 },
 
  18   mtime           => { type => 'timestamp', default => 'now()', not_null => 1 },
 
  19   recipients      => { type => 'text', not_null => 1 },
 
  20   sender_id       => { type => 'integer' },
 
  21   sent_on         => { type => 'timestamp', default => 'now()', not_null => 1 },
 
  22   status          => { type => 'text', not_null => 1 },
 
  23   subject         => { type => 'text', not_null => 1 },
 
  26 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
  28 __PACKAGE__->meta->allow_inline_column_values(1);
 
  30 __PACKAGE__->meta->foreign_keys(
 
  32     class       => 'SL::DB::Employee',
 
  33     key_columns => { sender_id => 'id' },