Revision b7b753bd
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/DB/MetaSetup/EmailJournal.pm | ||
---|---|---|
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 | 12 |
body => { type => 'text', not_null => 1 }, |
13 |
email_import_id => { type => 'integer' }, |
|
13 | 14 |
extended_status => { type => 'text', not_null => 1 }, |
15 |
folder => { type => 'text' }, |
|
14 | 16 |
from => { type => 'text', not_null => 1 }, |
15 | 17 |
headers => { type => 'text', not_null => 1 }, |
16 | 18 |
id => { type => 'serial', not_null => 1 }, |
... | ... | |
19 | 21 |
recipients => { type => 'text', not_null => 1 }, |
20 | 22 |
sender_id => { type => 'integer' }, |
21 | 23 |
sent_on => { type => 'timestamp', default => 'now()', not_null => 1 }, |
22 |
status => { type => 'text', not_null => 1 },
|
|
24 |
status => { type => 'enum', check_in => [ 'sent', 'send_failed', 'imported' ], db_type => 'email_journal_status', not_null => 1 },
|
|
23 | 25 |
subject => { type => 'text', not_null => 1 }, |
26 |
uid => { type => 'integer' }, |
|
24 | 27 |
); |
25 | 28 |
|
26 | 29 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
... | ... | |
28 | 31 |
__PACKAGE__->meta->allow_inline_column_values(1); |
29 | 32 |
|
30 | 33 |
__PACKAGE__->meta->foreign_keys( |
34 |
email_import => { |
|
35 |
class => 'SL::DB::EmailImport', |
|
36 |
key_columns => { email_import_id => 'id' }, |
|
37 |
}, |
|
38 |
|
|
31 | 39 |
sender => { |
32 | 40 |
class => 'SL::DB::Employee', |
33 | 41 |
key_columns => { sender_id => 'id' }, |
Auch abrufbar als: Unified diff
EmailSync: EmailJournal erweitert und EmailImport hinzugefügt