kivitendo/SL/DB/MetaSetup/Letter.pm @ 1cc7b9e6
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::Letter;
|
||||
use strict;
|
||||
2ea07c13 | Sven Schöling | use parent qw(SL::DB::Object);
|
||
4b7f17c8 | Geoffrey Richardson | |||
__PACKAGE__->meta->table('letter');
|
||||
__PACKAGE__->meta->columns(
|
||||
body => { type => 'text' },
|
||||
close => { type => 'text' },
|
||||
company_name => { type => 'text' },
|
||||
b683eb9d | Sven Schöling | cp_id => { type => 'integer' },
|
||
date => { type => 'date' },
|
||||
4b7f17c8 | Geoffrey Richardson | employee_id => { type => 'integer' },
|
||
employee_position => { type => 'text' },
|
||||
b683eb9d | Sven Schöling | greeting => { type => 'text' },
|
||
id => { type => 'integer', not_null => 1, sequence => 'id' },
|
||||
intnotes => { type => 'text' },
|
||||
4b7f17c8 | Geoffrey Richardson | itime => { type => 'timestamp', default => 'now()' },
|
||
b683eb9d | Sven Schöling | jobnumber => { type => 'text' },
|
||
letternumber => { type => 'text' },
|
||||
4b7f17c8 | Geoffrey Richardson | mtime => { type => 'timestamp' },
|
||
page_created_for => { type => 'text' },
|
||||
b683eb9d | Sven Schöling | rcv_address => { type => 'text' },
|
||
rcv_city => { type => 'text' },
|
||||
rcv_contact => { type => 'text' },
|
||||
rcv_country => { type => 'text' },
|
||||
rcv_countrycode => { type => 'text' },
|
||||
rcv_name => { type => 'text' },
|
||||
rcv_zipcode => { type => 'text' },
|
||||
reference => { type => 'text' },
|
||||
salesman_id => { type => 'integer' },
|
||||
salesman_position => { type => 'text' },
|
||||
subject => { type => 'text' },
|
||||
text_created_for => { type => 'text' },
|
||||
vc_id => { type => 'integer', not_null => 1 },
|
||||
4b7f17c8 | Geoffrey Richardson | );
|
||
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
|
||||
__PACKAGE__->meta->allow_inline_column_values(1);
|
||||
__PACKAGE__->meta->foreign_keys(
|
||||
b683eb9d | Sven Schöling | contact => {
|
||
class => 'SL::DB::Contact',
|
||||
key_columns => { cp_id => 'cp_id' },
|
||||
},
|
||||
4b7f17c8 | Geoffrey Richardson | employee => {
|
||
class => 'SL::DB::Employee',
|
||||
key_columns => { employee_id => 'id' },
|
||||
},
|
||||
salesman => {
|
||||
class => 'SL::DB::Employee',
|
||||
key_columns => { salesman_id => 'id' },
|
||||
},
|
||||
);
|
||||
1;
|
||||
;
|