MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren
[kivitendo-erp.git] / SL / DB / MetaSetup / Vendor.pm
index 6ba58b5..1a691ff 100644 (file)
@@ -9,49 +9,49 @@ use base qw(SL::DB::Object);
 __PACKAGE__->meta->table('vendor');
 
 __PACKAGE__->meta->columns(
-  id             => { type => 'integer', not_null => 1, sequence => 'id' },
-  name           => { type => 'varchar', length => 75, not_null => 1 },
-  department_1   => { type => 'varchar', length => 75 },
-  department_2   => { type => 'varchar', length => 75 },
-  street         => { type => 'varchar', length => 75 },
-  zipcode        => { type => 'varchar', length => 10 },
+  account_number => { type => 'varchar', length => 15 },
+  bank           => { type => 'text' },
+  bank_code      => { type => 'varchar', length => 10 },
+  bcc            => { type => 'text' },
+  bic            => { type => 'varchar', length => 100 },
+  business_id    => { type => 'integer' },
+  cc             => { type => 'text' },
   city           => { type => 'varchar', length => 75 },
-  country        => { type => 'varchar', length => 75 },
   contact        => { type => 'varchar', length => 75 },
-  phone          => { type => 'text' },
+  country        => { type => 'varchar', length => 75 },
+  creditlimit    => { type => 'numeric', precision => 5, scale => 15 },
+  currency_id    => { type => 'integer', not_null => 1 },
+  department_1   => { type => 'varchar', length => 75 },
+  department_2   => { type => 'varchar', length => 75 },
+  direct_debit   => { type => 'boolean', default => 'false' },
+  discount       => { type => 'float', precision => 4 },
+  email          => { type => 'text' },
   fax            => { type => 'varchar', length => 30 },
+  greeting       => { type => 'text' },
   homepage       => { type => 'text' },
-  email          => { type => 'text' },
-  notes          => { type => 'text' },
-  terms          => { type => 'integer', default => '0' },
-  taxincluded    => { type => 'boolean' },
-  vendornumber   => { type => 'text' },
-  cc             => { type => 'text' },
-  bcc            => { type => 'text' },
-  business_id    => { type => 'integer' },
-  taxnumber      => { type => 'text' },
-  discount       => { type => 'float', precision => 4 },
-  creditlimit    => { type => 'numeric', precision => 5, scale => 15 },
-  account_number => { type => 'varchar', length => 15 },
-  bank_code      => { type => 'varchar', length => 10 },
-  bank           => { type => 'text' },
-  language       => { type => 'varchar', length => 5 },
+  iban           => { type => 'varchar', length => 100 },
+  id             => { type => 'integer', not_null => 1, sequence => 'id' },
   itime          => { type => 'timestamp', default => 'now()' },
+  language       => { type => 'varchar', length => 5 },
+  language_id    => { type => 'integer' },
   mtime          => { type => 'timestamp' },
+  name           => { type => 'varchar', length => 75, not_null => 1 },
+  notes          => { type => 'text' },
   obsolete       => { type => 'boolean', default => 'false' },
-  username       => { type => 'varchar', length => 50 },
-  user_password  => { type => 'varchar', length => 12 },
-  salesman_id    => { type => 'integer' },
-  v_customer_id  => { type => 'text' },
-  language_id    => { type => 'integer' },
   payment_id     => { type => 'integer' },
+  phone          => { type => 'text' },
+  salesman_id    => { type => 'integer' },
+  street         => { type => 'varchar', length => 75 },
+  taxincluded    => { type => 'boolean' },
+  taxnumber      => { type => 'text' },
   taxzone_id     => { type => 'integer', default => '0', not_null => 1 },
-  greeting       => { type => 'text' },
+  terms          => { type => 'integer', default => '0' },
+  user_password  => { type => 'varchar', length => 12 },
+  username       => { type => 'varchar', length => 50 },
   ustid          => { type => 'varchar', length => 14 },
-  direct_debit   => { type => 'boolean', default => 'false' },
-  iban           => { type => 'varchar', length => 100 },
-  bic            => { type => 'varchar', length => 100 },
-  currency_id    => { type => 'integer', not_null => 1 },
+  v_customer_id  => { type => 'text' },
+  vendornumber   => { type => 'text' },
+  zipcode        => { type => 'varchar', length => 10 },
 );
 
 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
@@ -80,7 +80,5 @@ __PACKAGE__->meta->foreign_keys(
   },
 );
 
-# __PACKAGE__->meta->initialize;
-
 1;
 ;