]> wagnertech.de Git - mfinanz.git/blob - SL/DB/MetaSetup/FollowUpDone.pm
date error in mapping
[mfinanz.git] / SL / DB / MetaSetup / FollowUpDone.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::FollowUpDone;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('follow_up_done');
10
11 __PACKAGE__->meta->columns(
12   done_at      => { type => 'timestamp', default => 'now()', not_null => 1 },
13   employee_id  => { type => 'integer' },
14   follow_up_id => { type => 'integer', not_null => 1 },
15   id           => { type => 'serial', not_null => 1 },
16 );
17
18 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
19
20 __PACKAGE__->meta->unique_keys([ 'follow_up_id' ]);
21
22 __PACKAGE__->meta->allow_inline_column_values(1);
23
24 __PACKAGE__->meta->foreign_keys(
25   employee => {
26     class       => 'SL::DB::Employee',
27     key_columns => { employee_id => 'id' },
28   },
29
30   follow_up => {
31     class       => 'SL::DB::FollowUp',
32     key_columns => { follow_up_id => 'id' },
33     rel_type    => 'one to one',
34   },
35 );
36
37 1;
38 ;