X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b989d7cfb4bd8de5c3e290b8df0519ad34d5dd0c..fdebfd5d0c558cb156849b01c9c9268b29dc443b:/SL/DB/MetaSetup/Buchungsgruppe.pm 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; ;