X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FFollowUpAccess.pm;h=fa6898ea950321e3b7c3c77fb61ace44208cfc09;hb=b74d1c197c8365b14587838d999244274de12884;hp=55c6f5f145f994c3454d7fb5b0f8ca61e8a3f625;hpb=b8b112a39bd601b0bc717646d78de470631da22a;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/FollowUpAccess.pm b/SL/DB/MetaSetup/FollowUpAccess.pm index 55c6f5f14..fa6898ea9 100644 --- a/SL/DB/MetaSetup/FollowUpAccess.pm +++ b/SL/DB/MetaSetup/FollowUpAccess.pm @@ -4,31 +4,29 @@ package SL::DB::FollowUpAccess; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('follow_up_access'); __PACKAGE__->meta->columns( - who => { type => 'integer', not_null => 1 }, - what => { type => 'integer', not_null => 1 }, id => { type => 'serial', not_null => 1 }, + what => { type => 'integer', not_null => 1 }, + who => { type => 'integer', not_null => 1 }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); __PACKAGE__->meta->foreign_keys( - employee => { + to_follow_ups_by => { class => 'SL::DB::Employee', - key_columns => { who => 'id' }, + key_columns => { what => 'id' }, }, - employee_obj => { + with_access => { class => 'SL::DB::Employee', - key_columns => { what => 'id' }, + key_columns => { who => 'id' }, }, ); -# __PACKAGE__->meta->initialize; - 1; ;