Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Assembly.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('assembly'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
id => { type => 'integer' }, |
|
13 |
parts_id => { type => 'integer' }, |
|
14 |
qty => { type => 'float', precision => 4 }, |
|
12 |
assembly_id => { type => 'serial', not_null => 1 }, |
|
15 | 13 |
bom => { type => 'boolean' }, |
14 |
id => { type => 'integer' }, |
|
16 | 15 |
itime => { type => 'timestamp', default => 'now()' }, |
17 | 16 |
mtime => { type => 'timestamp' }, |
18 |
assembly_id => { type => 'serial', not_null => 1 }, |
|
17 |
parts_id => { type => 'integer' }, |
|
18 |
qty => { type => 'float', precision => 4 }, |
|
19 | 19 |
); |
20 | 20 |
|
21 | 21 |
__PACKAGE__->meta->primary_key_columns([ 'assembly_id' ]); |
22 | 22 |
|
23 | 23 |
__PACKAGE__->meta->allow_inline_column_values(1); |
24 | 24 |
|
25 |
# __PACKAGE__->meta->initialize; |
|
26 |
|
|
27 | 25 |
1; |
28 | 26 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren