92f89be2d48536a4f6a4a7bb23fdc79c11a191e5
[kivitendo-erp.git] / SL / DB / MetaSetup / EmailJournal.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::EmailJournal;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('email_journal');
10
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 },
24 );
25
26 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
27
28 __PACKAGE__->meta->allow_inline_column_values(1);
29
30 __PACKAGE__->meta->foreign_keys(
31   sender => {
32     class       => 'SL::DB::Employee',
33     key_columns => { sender_id => 'id' },
34   },
35 );
36
37 1;
38 ;