b7b06be86cf9e4340eb24527184b6d6304ead5b4
[kivitendo-erp.git] / SL / DB / MetaSetup / Employee.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::Employee;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->setup(
10   table   => 'employee',
11
12   columns => [
13     id        => { type => 'integer', not_null => 1, sequence => 'id' },
14     login     => { type => 'text' },
15     startdate => { type => 'date', default => 'now' },
16     enddate   => { type => 'date' },
17     notes     => { type => 'text' },
18     sales     => { type => 'boolean', default => 'true' },
19     itime     => { type => 'timestamp', default => 'now()' },
20     mtime     => { type => 'timestamp' },
21     name      => { type => 'text' },
22     addr1     => { type => 'text' },
23     addr2     => { type => 'text' },
24     addr3     => { type => 'text' },
25     addr4     => { type => 'text' },
26     homephone => { type => 'text' },
27     workphone => { type => 'text' },
28     deleted   => { type => 'boolean', default => 'false' },
29   ],
30
31   primary_key_columns => [ 'id' ],
32
33   unique_key => [ 'login' ],
34
35   allow_inline_column_values => 1,
36 );
37
38 1;
39 ;