X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FBuchungsgruppe.pm;h=e89cb4b1cfe2b0ac679a8ce635b91ded0501bd2e;hb=23b40897da260096305ac051291d95623dcf075a;hp=b81fb1295252770b8455a4ec6b944567a06d84ff;hpb=b989d7cfb4bd8de5c3e290b8df0519ad34d5dd0c;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Buchungsgruppe.pm b/SL/DB/MetaSetup/Buchungsgruppe.pm index b81fb1295..e89cb4b1c 100644 --- a/SL/DB/MetaSetup/Buchungsgruppe.pm +++ b/SL/DB/MetaSetup/Buchungsgruppe.pm @@ -4,17 +4,25 @@ package SL::DB::Buchungsgruppe; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('buchungsgruppen'); __PACKAGE__->meta->columns( description => { type => 'text' }, - inventory_accno_id => { type => 'integer' }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, + inventory_accno_id => { type => 'integer', not_null => 1 }, sortkey => { type => 'integer', not_null => 1 }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); +__PACKAGE__->meta->foreign_keys( + inventory_accno => { + class => 'SL::DB::Chart', + key_columns => { inventory_accno_id => 'id' }, + }, +); + 1; ;