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::LetterDraft;
7 use parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('letter_draft');
11 __PACKAGE__->meta->columns(
12 body => { type => 'text' },
13 cp_id => { type => 'integer' },
14 customer_id => { type => 'integer' },
15 date => { type => 'date' },
16 employee_id => { type => 'integer' },
17 greeting => { type => 'text' },
18 id => { type => 'integer', not_null => 1, sequence => 'id' },
19 intnotes => { type => 'text' },
20 itime => { type => 'timestamp', default => 'now()' },
21 letternumber => { type => 'text' },
22 mtime => { type => 'timestamp' },
23 reference => { type => 'text' },
24 salesman_id => { type => 'integer' },
25 subject => { type => 'text' },
26 vendor_id => { type => 'integer' },
29 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
31 __PACKAGE__->meta->allow_inline_column_values(1);
33 __PACKAGE__->meta->foreign_keys(
35 class => 'SL::DB::Contact',
36 key_columns => { cp_id => 'cp_id' },
40 class => 'SL::DB::Customer',
41 key_columns => { customer_id => 'id' },
45 class => 'SL::DB::Employee',
46 key_columns => { employee_id => 'id' },
50 class => 'SL::DB::Employee',
51 key_columns => { salesman_id => 'id' },
55 class => 'SL::DB::Vendor',
56 key_columns => { vendor_id => 'id' },