X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FChart.pm;h=993fd0d56370b25ac7ade75b12da2a926642dd49;hb=29a13714c18417c2c8c3e62055ac6d67d0993e65;hp=7903a3a108afc9e69fd045cee60d7800bd823cb6;hpb=ff6cd9b714ffff6797df2c68e4dfeebcd1b86d08;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Chart.pm b/SL/DB/MetaSetup/Chart.pm index 7903a3a10..993fd0d56 100644 --- a/SL/DB/MetaSetup/Chart.pm +++ b/SL/DB/MetaSetup/Chart.pm @@ -4,35 +4,34 @@ package SL::DB::Chart; use strict; -use base qw(SL::DB::Object); - -__PACKAGE__->meta->setup( - table => 'chart', - - columns => [ - id => { type => 'integer', not_null => 1, sequence => 'id' }, - accno => { type => 'text', not_null => 1 }, - description => { type => 'text' }, - charttype => { type => 'character', default => 'A', length => 1 }, - category => { type => 'character', length => 1 }, - link => { type => 'text', not_null => 1 }, - taxkey_id => { type => 'integer' }, - pos_bwa => { type => 'integer' }, - pos_bilanz => { type => 'integer' }, - pos_eur => { type => 'integer' }, - datevautomatik => { type => 'boolean', default => 'false' }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - new_chart_id => { type => 'integer' }, - valid_from => { type => 'date' }, - ], - - primary_key_columns => [ 'id' ], - - unique_key => [ 'accno' ], - - allow_inline_column_values => 1, +use parent qw(SL::DB::Object); + +__PACKAGE__->meta->table('chart'); + +__PACKAGE__->meta->columns( + accno => { type => 'text', not_null => 1 }, + category => { type => 'character', length => 1 }, + charttype => { type => 'character', default => 'A', length => 1 }, + datevautomatik => { type => 'boolean', default => 'false' }, + description => { type => 'text' }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, + itime => { type => 'timestamp', default => 'now()' }, + link => { type => 'text', not_null => 1 }, + mtime => { type => 'timestamp' }, + new_chart_id => { type => 'integer' }, + pos_bilanz => { type => 'integer' }, + pos_bwa => { type => 'integer' }, + pos_er => { type => 'integer' }, + pos_eur => { type => 'integer' }, + taxkey_id => { type => 'integer' }, + valid_from => { type => 'date' }, ); +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + +__PACKAGE__->meta->unique_keys([ 'accno' ]); + +__PACKAGE__->meta->allow_inline_column_values(1); + 1; ;