epic-ts
[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 parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('follow_ups');
10
11 __PACKAGE__->meta->columns(
12   created_by       => { type => 'integer', not_null => 1 },
13   created_for_user => { type => 'integer', not_null => 1 },
14   done             => { type => 'boolean', default => 'false' },
15   follow_up_date   => { type => 'date', not_null => 1 },
16   id               => { type => 'integer', not_null => 1, sequence => 'follow_up_id' },
17   itime            => { type => 'timestamp', default => 'now()' },
18   mtime            => { type => 'timestamp' },
19   note_id          => { type => 'integer', not_null => 1 },
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   created_by => {
28     class       => 'SL::DB::Employee',
29     key_columns => { created_by => 'id' },
30   },
31
32   created_for => {
33     class       => 'SL::DB::Employee',
34     key_columns => { created_for_user => 'id' },
35   },
36
37   note => {
38     class       => 'SL::DB::Note',
39     key_columns => { note_id => 'id' },
40   },
41 );
42
43 1;
44 ;