X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/cf889668782d1ffbb76b9f28e1d36848544fa3b3..5f83d21ff9fa1fe5997227a7de812b20538e90e6:/SL/DB/MetaSetup/AuthUserConfig.pm diff --git a/SL/DB/MetaSetup/AuthUserConfig.pm b/SL/DB/MetaSetup/AuthUserConfig.pm index 2d132eb6a..ef9e34895 100644 --- a/SL/DB/MetaSetup/AuthUserConfig.pm +++ b/SL/DB/MetaSetup/AuthUserConfig.pm @@ -8,6 +8,7 @@ use base qw(SL::DB::Object); __PACKAGE__->meta->setup( table => 'user_config', + schema => 'auth', columns => [ user_id => { type => 'integer', not_null => 1 }, @@ -16,6 +17,13 @@ __PACKAGE__->meta->setup( ], primary_key_columns => [ 'user_id', 'cfg_key' ], + + foreign_keys => [ + user => { + class => 'SL::DB::AuthUser', + key_columns => { user_id => 'id' }, + }, + ], ); 1;