Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Part.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('parts'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
13 |
partnumber => { type => 'text', not_null => 1 }, |
|
14 |
description => { type => 'text' }, |
|
15 |
listprice => { type => 'numeric', precision => 5, scale => 15 }, |
|
16 |
sellprice => { type => 'numeric', precision => 5, scale => 15 }, |
|
17 |
lastcost => { type => 'numeric', precision => 5, scale => 15 }, |
|
18 |
priceupdate => { type => 'date', default => 'now' }, |
|
19 |
weight => { type => 'float', precision => 4 }, |
|
20 |
notes => { type => 'text' }, |
|
21 |
makemodel => { type => 'boolean', default => 'false' }, |
|
22 |
assembly => { type => 'boolean', default => 'false' }, |
|
23 | 12 |
alternate => { type => 'boolean', default => 'false' }, |
24 |
rop => { type => 'float', precision => 4 }, |
|
25 |
inventory_accno_id => { type => 'integer' }, |
|
26 |
income_accno_id => { type => 'integer' }, |
|
27 |
expense_accno_id => { type => 'integer' }, |
|
28 |
shop => { type => 'boolean', default => 'false' }, |
|
29 |
obsolete => { type => 'boolean', default => 'false' }, |
|
13 |
assembly => { type => 'boolean', default => 'false' }, |
|
14 |
bin_id => { type => 'integer' }, |
|
30 | 15 |
bom => { type => 'boolean', default => 'false' }, |
31 |
image => { type => 'text' }, |
|
16 |
buchungsgruppen_id => { type => 'integer' }, |
|
17 |
description => { type => 'text' }, |
|
32 | 18 |
drawing => { type => 'text' }, |
33 |
microfiche => { type => 'text' },
|
|
34 |
partsgroup_id => { type => 'integer' },
|
|
35 |
ve => { type => 'integer' },
|
|
19 |
ean => { type => 'text' },
|
|
20 |
expense_accno_id => { type => 'integer' },
|
|
21 |
formel => { type => 'text' },
|
|
36 | 22 |
gv => { type => 'numeric', precision => 5, scale => 15 }, |
23 |
has_sernumber => { type => 'boolean', default => 'false' }, |
|
24 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
25 |
image => { type => 'text' }, |
|
26 |
income_accno_id => { type => 'integer' }, |
|
27 |
inventory_accno_id => { type => 'integer' }, |
|
37 | 28 |
itime => { type => 'timestamp', default => 'now()' }, |
29 |
lastcost => { type => 'numeric', precision => 5, scale => 15 }, |
|
30 |
listprice => { type => 'numeric', precision => 5, scale => 15 }, |
|
31 |
makemodel => { type => 'boolean', default => 'false' }, |
|
32 |
microfiche => { type => 'text' }, |
|
38 | 33 |
mtime => { type => 'timestamp' }, |
39 |
unit => { type => 'varchar', length => 20, not_null => 1 }, |
|
40 |
formel => { type => 'text' }, |
|
41 | 34 |
not_discountable => { type => 'boolean', default => 'false' }, |
42 |
buchungsgruppen_id => { type => 'integer' }, |
|
35 |
notes => { type => 'text' }, |
|
36 |
obsolete => { type => 'boolean', default => 'false' }, |
|
37 |
onhand => { type => 'numeric', default => '0', precision => 5, scale => 25 }, |
|
38 |
partnumber => { type => 'text', not_null => 1 }, |
|
39 |
partsgroup_id => { type => 'integer' }, |
|
43 | 40 |
payment_id => { type => 'integer' }, |
44 |
ean => { type => 'text' }, |
|
45 | 41 |
price_factor_id => { type => 'integer' }, |
46 |
onhand => { type => 'numeric', default => '0', precision => 5, scale => 25 }, |
|
42 |
priceupdate => { type => 'date', default => 'now' }, |
|
43 |
rop => { type => 'float', precision => 4 }, |
|
44 |
sellprice => { type => 'numeric', precision => 5, scale => 15 }, |
|
45 |
shop => { type => 'boolean', default => 'false' }, |
|
47 | 46 |
stockable => { type => 'boolean', default => 'false' }, |
48 |
has_sernumber => { type => 'boolean', default => 'false' }, |
|
47 |
unit => { type => 'varchar', length => 20, not_null => 1 }, |
|
48 |
ve => { type => 'integer' }, |
|
49 | 49 |
warehouse_id => { type => 'integer' }, |
50 |
bin_id => { type => 'integer' },
|
|
50 |
weight => { type => 'float', precision => 4 },
|
|
51 | 51 |
); |
52 | 52 |
|
53 | 53 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
... | ... | |
93 | 93 |
}, |
94 | 94 |
); |
95 | 95 |
|
96 |
# __PACKAGE__->meta->initialize; |
|
97 |
|
|
98 | 96 |
1; |
99 | 97 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren