kivitendo/SL/DB/MetaSetup/LetterDraft.pm @ 7b1da9c3
4b7f17c8 | Geoffrey Richardson | # This file has been auto-generated. Do not modify it; it will be overwritten
|
||
# by rose_auto_create_model.pl automatically.
|
||||
package SL::DB::LetterDraft;
|
||||
use strict;
|
||||
2ea07c13 | Sven Schöling | use parent qw(SL::DB::Object);
|
||
4b7f17c8 | Geoffrey Richardson | |||
__PACKAGE__->meta->table('letter_draft');
|
||||
__PACKAGE__->meta->columns(
|
||||
7196276b | Moritz Bunkus | body => { type => 'text' },
|
||
cp_id => { type => 'integer' },
|
||||
db7a2e79 | Sven Schöling | customer_id => { type => 'integer' },
|
||
7196276b | Moritz Bunkus | date => { type => 'date' },
|
||
employee_id => { type => 'integer' },
|
||||
greeting => { type => 'text' },
|
||||
id => { type => 'integer', not_null => 1, sequence => 'id' },
|
||||
intnotes => { type => 'text' },
|
||||
itime => { type => 'timestamp', default => 'now()' },
|
||||
letternumber => { type => 'text' },
|
||||
mtime => { type => 'timestamp' },
|
||||
reference => { type => 'text' },
|
||||
salesman_id => { type => 'integer' },
|
||||
subject => { type => 'text' },
|
||||
db7a2e79 | Sven Schöling | vendor_id => { type => 'integer' },
|
||
4b7f17c8 | Geoffrey Richardson | );
|
||
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
|
||||
__PACKAGE__->meta->allow_inline_column_values(1);
|
||||
__PACKAGE__->meta->foreign_keys(
|
||||
contact => {
|
||||
class => 'SL::DB::Contact',
|
||||
key_columns => { cp_id => 'cp_id' },
|
||||
},
|
||||
7196276b | Moritz Bunkus | customer => {
|
||
class => 'SL::DB::Customer',
|
||||
key_columns => { customer_id => 'id' },
|
||||
},
|
||||
4b7f17c8 | Geoffrey Richardson | employee => {
|
||
class => 'SL::DB::Employee',
|
||||
key_columns => { employee_id => 'id' },
|
||||
},
|
||||
salesman => {
|
||||
class => 'SL::DB::Employee',
|
||||
key_columns => { salesman_id => 'id' },
|
||||
},
|
||||
db7a2e79 | Sven Schöling | |||
vendor => {
|
||||
class => 'SL::DB::Vendor',
|
||||
key_columns => { vendor_id => 'id' },
|
||||
},
|
||||
4b7f17c8 | Geoffrey Richardson | );
|
||
1;
|
||||
;
|