Brieffunktion: unbenutzte Tabellenspalten entfernt, vc_id → customer_id umbenannt
[kivitendo-erp.git] / SL / DB / MetaSetup / Letter.pm
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::Letter;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('letter');
10
11 __PACKAGE__->meta->columns(
12   body         => { type => 'text' },
13   cp_id        => { type => 'integer' },
14   customer_id  => { type => 'integer', not_null => 1 },
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 );
27
28 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
29
30 __PACKAGE__->meta->allow_inline_column_values(1);
31
32 __PACKAGE__->meta->foreign_keys(
33   contact => {
34     class       => 'SL::DB::Contact',
35     key_columns => { cp_id => 'cp_id' },
36   },
37
38   customer => {
39     class       => 'SL::DB::Customer',
40     key_columns => { customer_id => 'id' },
41   },
42
43   employee => {
44     class       => 'SL::DB::Employee',
45     key_columns => { employee_id => 'id' },
46   },
47
48   salesman => {
49     class       => 'SL::DB::Employee',
50     key_columns => { salesman_id => 'id' },
51   },
52 );
53
54 1;
55 ;