X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6b935d522a38e1a20802c25ed51a15e0cd292c1d..7a98647b06d8fe8eb71a40d20e25d84d9faa3ed9:/SL/DB/MetaSetup/AuthUserConfig.pm diff --git a/SL/DB/MetaSetup/AuthUserConfig.pm b/SL/DB/MetaSetup/AuthUserConfig.pm index 2d132eb6a..54ea6ce9d 100644 --- a/SL/DB/MetaSetup/AuthUserConfig.pm +++ b/SL/DB/MetaSetup/AuthUserConfig.pm @@ -6,17 +6,25 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'user_config', +__PACKAGE__->meta->table('user_config'); +__PACKAGE__->meta->schema('auth'); - columns => [ - user_id => { type => 'integer', not_null => 1 }, - cfg_key => { type => 'text', not_null => 1 }, - cfg_value => { type => 'text' }, - ], +__PACKAGE__->meta->columns( + user_id => { type => 'integer', not_null => 1 }, + cfg_key => { type => 'text', not_null => 1 }, + cfg_value => { type => 'text' }, +); + +__PACKAGE__->meta->primary_key_columns([ 'user_id', 'cfg_key' ]); - primary_key_columns => [ 'user_id', 'cfg_key' ], +__PACKAGE__->meta->foreign_keys( + user => { + class => 'SL::DB::AuthUser', + key_columns => { user_id => 'id' }, + }, ); +# __PACKAGE__->meta->initialize; + 1; ;