b102f249c057a730fdec9e0509ba49285db8ad52
[kivitendo-erp.git] / SL / DB / MetaSetup / FollowUp.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::FollowUp;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('follow_ups');
10
11 __PACKAGE__->meta->columns(
12   id               => { type => 'integer', not_null => 1, sequence => 'follow_up_id' },
13   follow_up_date   => { type => 'date', not_null => 1 },
14   created_for_user => { type => 'integer', not_null => 1 },
15   done             => { type => 'boolean', default => 'false' },
16   note_id          => { type => 'integer', not_null => 1 },
17   created_by       => { type => 'integer', not_null => 1 },
18   itime            => { type => 'timestamp', default => 'now()' },
19   mtime            => { type => 'timestamp' },
20 );
21
22 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
23
24 __PACKAGE__->meta->allow_inline_column_values(1);
25
26 __PACKAGE__->meta->foreign_keys(
27   employee => {
28     class       => 'SL::DB::Employee',
29     key_columns => { created_for_user => 'id' },
30   },
31
32   employee_obj => {
33     class       => 'SL::DB::Employee',
34     key_columns => { created_by => 'id' },
35   },
36 );
37
38 __PACKAGE__->meta->relationships(
39   follow_up_links => {
40     class      => 'SL::DB::FollowUpLink',
41     column_map => { id => 'follow_up_id' },
42     type       => 'one to many',
43   },
44 );
45
46 # __PACKAGE__->meta->initialize;
47
48 1;
49 ;