Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/DeliveryOrderItemsStock.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('delivery_order_items_stock'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
13 |
delivery_order_item_id => { type => 'integer', not_null => 1 }, |
|
14 |
qty => { type => 'numeric', not_null => 1, precision => 5, scale => 15 }, |
|
15 |
unit => { type => 'varchar', length => 20, not_null => 1 }, |
|
16 |
warehouse_id => { type => 'integer', not_null => 1 }, |
|
12 |
bestbefore => { type => 'date' }, |
|
17 | 13 |
bin_id => { type => 'integer', not_null => 1 }, |
18 | 14 |
chargenumber => { type => 'text' }, |
15 |
delivery_order_item_id => { type => 'integer', not_null => 1 }, |
|
16 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
19 | 17 |
itime => { type => 'timestamp', default => 'now()' }, |
20 | 18 |
mtime => { type => 'timestamp' }, |
21 |
bestbefore => { type => 'date' }, |
|
19 |
qty => { type => 'numeric', not_null => 1, precision => 5, scale => 15 }, |
|
20 |
unit => { type => 'varchar', length => 20, not_null => 1 }, |
|
21 |
warehouse_id => { type => 'integer', not_null => 1 }, |
|
22 | 22 |
); |
23 | 23 |
|
24 | 24 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
... | ... | |
42 | 42 |
}, |
43 | 43 |
); |
44 | 44 |
|
45 |
# __PACKAGE__->meta->initialize; |
|
46 |
|
|
47 | 45 |
1; |
48 | 46 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren