Kleinere DB-Details (Fremdschlüssel und verwaiste Tabelle)
[kivitendo-erp.git] / SL / DB / MetaSetup / Vendor.pm
index f2988ad..aa44b13 100644 (file)
@@ -24,6 +24,7 @@ __PACKAGE__->meta->columns(
   delivery_term_id => { type => 'integer' },
   department_1     => { type => 'varchar', length => 75 },
   department_2     => { type => 'varchar', length => 75 },
+  depositor        => { type => 'text' },
   direct_debit     => { type => 'boolean', default => 'false' },
   discount         => { type => 'float', precision => 4 },
   email            => { type => 'text' },
@@ -84,6 +85,11 @@ __PACKAGE__->meta->foreign_keys(
     class       => 'SL::DB::PaymentTerm',
     key_columns => { payment_id => 'id' },
   },
+
+  salesman => {
+    class       => 'SL::DB::Employee',
+    key_columns => { salesman_id => 'id' },
+  },
 );
 
 1;