419375f0204f4983b857cd7de4457a09e36b4f3b
[kivitendo-erp.git] / SL / DB / MetaSetup / Contact.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::Contact;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('contacts');
10
11 __PACKAGE__->meta->columns(
12   cp_abteilung   => { type => 'text' },
13   cp_birthday    => { type => 'date' },
14   cp_city        => { type => 'text' },
15   cp_cv_id       => { type => 'integer' },
16   cp_email       => { type => 'text' },
17   cp_fax         => { type => 'text' },
18   cp_gender      => { type => 'character', length => 1 },
19   cp_givenname   => { type => 'text' },
20   cp_id          => { type => 'integer', not_null => 1, sequence => 'id' },
21   cp_main        => { type => 'boolean', default => 'false' },
22   cp_mobile1     => { type => 'text' },
23   cp_mobile2     => { type => 'text' },
24   cp_name        => { type => 'text' },
25   cp_phone1      => { type => 'text' },
26   cp_phone2      => { type => 'text' },
27   cp_position    => { type => 'text' },
28   cp_privatemail => { type => 'text' },
29   cp_privatphone => { type => 'text' },
30   cp_project     => { type => 'text' },
31   cp_satfax      => { type => 'text' },
32   cp_satphone    => { type => 'text' },
33   cp_street      => { type => 'text' },
34   cp_title       => { type => 'text' },
35   cp_zipcode     => { type => 'text' },
36   itime          => { type => 'timestamp', default => 'now()' },
37   mtime          => { type => 'timestamp' },
38 );
39
40 __PACKAGE__->meta->primary_key_columns([ 'cp_id' ]);
41
42 __PACKAGE__->meta->allow_inline_column_values(1);
43
44 1;
45 ;