X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FSepaExport.pm;h=d44cb227f099b3b9f9307bce55a4a9bf0334b9a5;hb=f24cf1f5ab8428ced545a382d0f0179ae6f40a81;hp=da0981799cede753964cf8f9e4da664b9c1877e2;hpb=eb58f1087cd0cab8ba186b5dad150d98ca3ecd2b;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/SepaExport.pm b/SL/DB/MetaSetup/SepaExport.pm index da0981799..d44cb227f 100644 --- a/SL/DB/MetaSetup/SepaExport.pm +++ b/SL/DB/MetaSetup/SepaExport.pm @@ -4,30 +4,28 @@ package SL::DB::SepaExport; use strict; -use base qw(SL::DB::Object); - -__PACKAGE__->meta->setup( - table => 'sepa_export', - - columns => [ - id => { type => 'serial', not_null => 1 }, - employee_id => { type => 'integer', not_null => 1 }, - executed => { type => 'boolean', default => 'false' }, - closed => { type => 'boolean', default => 'false' }, - itime => { type => 'timestamp', default => 'now()' }, - vc => { type => 'varchar', length => 10 }, - ], - - primary_key_columns => [ 'id' ], - - allow_inline_column_values => 1, - - foreign_keys => [ - employee => { - class => 'SL::DB::Employee', - key_columns => { employee_id => 'id' }, - }, - ], +use parent qw(SL::DB::Object); + +__PACKAGE__->meta->table('sepa_export'); + +__PACKAGE__->meta->columns( + closed => { type => 'boolean', default => 'false' }, + employee_id => { type => 'integer', not_null => 1 }, + executed => { type => 'boolean', default => 'false' }, + id => { type => 'serial', not_null => 1 }, + itime => { type => 'timestamp', default => 'now()' }, + vc => { type => 'varchar', length => 10 }, +); + +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + +__PACKAGE__->meta->allow_inline_column_values(1); + +__PACKAGE__->meta->foreign_keys( + employee => { + class => 'SL::DB::Employee', + key_columns => { employee_id => 'id' }, + }, ); 1;