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 email_import_id => { type => 'integer' },
14 extended_status => { type => 'text', not_null => 1 },
15 folder => { type => 'text' },
16 folder_uidvalidity => { type => 'text' },
17 from => { type => 'text', not_null => 1 },
18 headers => { type => 'text', not_null => 1 },
19 id => { type => 'serial', not_null => 1 },
20 itime => { type => 'timestamp', default => 'now()', not_null => 1 },
21 mtime => { type => 'timestamp', default => 'now()', not_null => 1 },
22 obsolete => { type => 'boolean', default => 'false', not_null => 1 },
23 recipients => { type => 'text', not_null => 1 },
24 record_type => { type => 'enum', check_in => [ 'sales_order', 'purchase_order', 'sales_quotation', 'request_quotation', 'purchase_quotation_intake', 'sales_order_intake', 'sales_delivery_order', 'purchase_delivery_order', 'supplier_delivery_order', 'rma_delivery_order', 'sales_reclamation', 'purchase_reclamation', 'invoice', 'invoice_for_advance_payment', 'invoice_for_advance_payment_storno', 'final_invoice', 'invoice_storno', 'credit_note', 'credit_note_storno', 'purchase_invoice', 'purchase_credit_note', 'ap_transaction', 'ar_transaction', 'gl_transaction', 'purchase_order_confirmation', 'catch_all' ], db_type => 'email_journal_record_type' },
25 sender_id => { type => 'integer' },
26 sent_on => { type => 'timestamp', default => 'now()', not_null => 1 },
27 status => { type => 'enum', check_in => [ 'sent', 'send_failed', 'imported' ], db_type => 'email_journal_status', not_null => 1 },
28 subject => { type => 'text', not_null => 1 },
29 uid => { type => 'integer' },
32 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
34 __PACKAGE__->meta->allow_inline_column_values(1);
36 __PACKAGE__->meta->foreign_keys(
38 class => 'SL::DB::EmailImport',
39 key_columns => { email_import_id => 'id' },
43 class => 'SL::DB::Employee',
44 key_columns => { sender_id => 'id' },