X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FTodoUserConfig.pm;h=1f986dd8df46748c85a17677f925a040689984d1;hb=377b705324a4c43ef21b838d4ea9d474132cf16f;hp=2be46cd10045148a15945065854fa653c0830322;hpb=f9676efea9ccfa01df2a57dca9c45cc8fde0d09e;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/TodoUserConfig.pm b/SL/DB/MetaSetup/TodoUserConfig.pm index 2be46cd10..1f986dd8d 100644 --- a/SL/DB/MetaSetup/TodoUserConfig.pm +++ b/SL/DB/MetaSetup/TodoUserConfig.pm @@ -6,27 +6,25 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'todo_user_config', +__PACKAGE__->meta->table('todo_user_config'); - columns => [ - employee_id => { type => 'integer', not_null => 1 }, - show_after_login => { type => 'boolean', default => 'true' }, - show_follow_ups => { type => 'boolean', default => 'true' }, - show_follow_ups_login => { type => 'boolean', default => 'true' }, - show_overdue_sales_quotations => { type => 'boolean', default => 'true' }, - show_overdue_sales_quotations_login => { type => 'boolean', default => 'true' }, - id => { type => 'serial', not_null => 1 }, - ], +__PACKAGE__->meta->columns( + employee_id => { type => 'integer', not_null => 1 }, + id => { type => 'serial', not_null => 1 }, + show_after_login => { type => 'boolean', default => 'true' }, + show_follow_ups => { type => 'boolean', default => 'true' }, + show_follow_ups_login => { type => 'boolean', default => 'true' }, + show_overdue_sales_quotations => { type => 'boolean', default => 'true' }, + show_overdue_sales_quotations_login => { type => 'boolean', default => 'true' }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - foreign_keys => [ - employee => { - class => 'SL::DB::Employee', - key_columns => { employee_id => 'id' }, - }, - ], +__PACKAGE__->meta->foreign_keys( + employee => { + class => 'SL::DB::Employee', + key_columns => { employee_id => 'id' }, + }, ); 1;