X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FAuthClient.pm;h=4d88887e05fcaad3191d506b6a78a994452c50c4;hb=97a6f6d623a9810e1d324f44a5f8bcd12294f5d3;hp=5e9d59e04bd94d120c8bb5f0bd53945ef54d8a3a;hpb=d2c5f6474ebd578ce46e09484780cfea556abb5e;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/AuthClient.pm b/SL/DB/MetaSetup/AuthClient.pm index 5e9d59e04..4d88887e0 100644 --- a/SL/DB/MetaSetup/AuthClient.pm +++ b/SL/DB/MetaSetup/AuthClient.pm @@ -10,14 +10,15 @@ __PACKAGE__->meta->table('clients'); __PACKAGE__->meta->schema('auth'); __PACKAGE__->meta->columns( - dbhost => { type => 'text', not_null => 1 }, - dbname => { type => 'text', not_null => 1 }, - dbpasswd => { type => 'text', not_null => 1 }, - dbport => { type => 'integer', default => 5432, not_null => 1 }, - dbuser => { type => 'text', not_null => 1 }, - id => { type => 'serial', not_null => 1 }, - is_default => { type => 'boolean', default => 'false', not_null => 1 }, - name => { type => 'text', not_null => 1 }, + dbhost => { type => 'text', not_null => 1 }, + dbname => { type => 'text', not_null => 1 }, + dbpasswd => { type => 'text', not_null => 1 }, + dbport => { type => 'integer', default => 5432, not_null => 1 }, + dbuser => { type => 'text', not_null => 1 }, + id => { type => 'serial', not_null => 1 }, + is_default => { type => 'boolean', default => 'false', not_null => 1 }, + name => { type => 'text', not_null => 1 }, + task_server_user_id => { type => 'integer' }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); @@ -27,5 +28,12 @@ __PACKAGE__->meta->unique_keys( [ 'name' ], ); +__PACKAGE__->meta->foreign_keys( + task_server_user => { + class => 'SL::DB::AuthUser', + key_columns => { task_server_user_id => 'id' }, + }, +); + 1; ;