MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren
[kivitendo-erp.git] / SL / DB / MetaSetup / DeliveryOrderItemsStock.pm
index 52e78e8..4263531 100644 (file)
@@ -9,16 +9,16 @@ use base qw(SL::DB::Object);
 __PACKAGE__->meta->table('delivery_order_items_stock');
 
 __PACKAGE__->meta->columns(
-  id                     => { type => 'integer', not_null => 1, sequence => 'id' },
-  delivery_order_item_id => { type => 'integer', not_null => 1 },
-  qty                    => { type => 'numeric', not_null => 1, precision => 5, scale => 15 },
-  unit                   => { type => 'varchar', length => 20, not_null => 1 },
-  warehouse_id           => { type => 'integer', not_null => 1 },
+  bestbefore             => { type => 'date' },
   bin_id                 => { type => 'integer', not_null => 1 },
   chargenumber           => { type => 'text' },
+  delivery_order_item_id => { type => 'integer', not_null => 1 },
+  id                     => { type => 'integer', not_null => 1, sequence => 'id' },
   itime                  => { type => 'timestamp', default => 'now()' },
   mtime                  => { type => 'timestamp' },
-  bestbefore             => { type => 'date' },
+  qty                    => { type => 'numeric', not_null => 1, precision => 5, scale => 15 },
+  unit                   => { type => 'varchar', length => 20, not_null => 1 },
+  warehouse_id           => { type => 'integer', not_null => 1 },
 );
 
 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
@@ -42,7 +42,5 @@ __PACKAGE__->meta->foreign_keys(
   },
 );
 
-# __PACKAGE__->meta->initialize;
-
 1;
 ;