]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/MetaSetup/FollowUpAccess.pm
Vergessen AuditTrail als DB-Objekt zu löschen
[kivitendo-erp.git] / SL / DB / MetaSetup / FollowUpAccess.pm
index 55c6f5f145f994c3454d7fb5b0f8ca61e8a3f625..43d53861045bdb132de0b6025763981615a152b4 100644 (file)
@@ -9,9 +9,9 @@ use base qw(SL::DB::Object);
 __PACKAGE__->meta->table('follow_up_access');
 
 __PACKAGE__->meta->columns(
 __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 },
   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->primary_key_columns([ 'id' ]);
@@ -19,16 +19,14 @@ __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 __PACKAGE__->meta->foreign_keys(
   employee => {
     class       => 'SL::DB::Employee',
 __PACKAGE__->meta->foreign_keys(
   employee => {
     class       => 'SL::DB::Employee',
-    key_columns => { who => 'id' },
+    key_columns => { what => 'id' },
   },
 
   employee_obj => {
     class       => 'SL::DB::Employee',
   },
 
   employee_obj => {
     class       => 'SL::DB::Employee',
-    key_columns => { what => 'id' },
+    key_columns => { who => 'id' },
   },
 );
 
   },
 );
 
-# __PACKAGE__->meta->initialize;
-
 1;
 ;
 1;
 ;