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;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->table('follow_ups');
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' },
22 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
24 __PACKAGE__->meta->allow_inline_column_values(1);
26 __PACKAGE__->meta->foreign_keys(
28 class => 'SL::DB::Employee',
29 key_columns => { created_for_user => 'id' },
33 class => 'SL::DB::Employee',
34 key_columns => { created_by => 'id' },
38 __PACKAGE__->meta->relationships(
40 class => 'SL::DB::FollowUpLink',
41 column_map => { id => 'follow_up_id' },
42 type => 'one to many',
46 # __PACKAGE__->meta->initialize;