X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/f97b07787db5cacc0f90338fdb3c1237262917cb..64b49f6c38c2c5763f21df00c7b4580ff70893be:/SL/DB/MetaSetup/TodoUserConfig.pm diff --git a/SL/DB/MetaSetup/TodoUserConfig.pm b/SL/DB/MetaSetup/TodoUserConfig.pm index 2be46cd10..3721e0ffe 100644 --- a/SL/DB/MetaSetup/TodoUserConfig.pm +++ b/SL/DB/MetaSetup/TodoUserConfig.pm @@ -6,28 +6,28 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - 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 }, - ], - - primary_key_columns => [ 'id' ], - - foreign_keys => [ - employee => { - class => 'SL::DB::Employee', - key_columns => { employee_id => 'id' }, - }, - ], +__PACKAGE__->meta->table('todo_user_config'); + +__PACKAGE__->meta->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->primary_key_columns([ 'id' ]); + +__PACKAGE__->meta->foreign_keys( + employee => { + class => 'SL::DB::Employee', + key_columns => { employee_id => 'id' }, + }, +); + +# __PACKAGE__->meta->initialize; + 1; ;