4d88887e05fcaad3191d506b6a78a994452c50c4
[kivitendo-erp.git] / SL / DB / MetaSetup / AuthClient.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::AuthClient;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('clients');
10 __PACKAGE__->meta->schema('auth');
11
12 __PACKAGE__->meta->columns(
13   dbhost              => { type => 'text', not_null => 1 },
14   dbname              => { type => 'text', not_null => 1 },
15   dbpasswd            => { type => 'text', not_null => 1 },
16   dbport              => { type => 'integer', default => 5432, not_null => 1 },
17   dbuser              => { type => 'text', not_null => 1 },
18   id                  => { type => 'serial', not_null => 1 },
19   is_default          => { type => 'boolean', default => 'false', not_null => 1 },
20   name                => { type => 'text', not_null => 1 },
21   task_server_user_id => { type => 'integer' },
22 );
23
24 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
25
26 __PACKAGE__->meta->unique_keys(
27   [ 'dbhost', 'dbport', 'dbname' ],
28   [ 'name' ],
29 );
30
31 __PACKAGE__->meta->foreign_keys(
32   task_server_user => {
33     class       => 'SL::DB::AuthUser',
34     key_columns => { task_server_user_id => 'id' },
35   },
36 );
37
38 1;
39 ;