Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/MakeModel.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('makemodel'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
parts_id => { type => 'integer' }, |
|
13 |
model => { type => 'text' }, |
|
14 |
itime => { type => 'timestamp', default => 'now()' }, |
|
15 |
mtime => { type => 'timestamp' }, |
|
16 |
make => { type => 'integer' }, |
|
17 | 12 |
id => { type => 'serial', not_null => 1 }, |
13 |
itime => { type => 'timestamp', default => 'now()' }, |
|
18 | 14 |
lastcost => { type => 'numeric', precision => 5, scale => 15 }, |
19 | 15 |
lastupdate => { type => 'date' }, |
16 |
make => { type => 'integer' }, |
|
17 |
model => { type => 'text' }, |
|
18 |
mtime => { type => 'timestamp' }, |
|
19 |
parts_id => { type => 'integer' }, |
|
20 | 20 |
sortorder => { type => 'integer' }, |
21 | 21 |
); |
22 | 22 |
|
... | ... | |
24 | 24 |
|
25 | 25 |
__PACKAGE__->meta->allow_inline_column_values(1); |
26 | 26 |
|
27 |
# __PACKAGE__->meta->initialize; |
|
28 |
|
|
29 | 27 |
1; |
30 | 28 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren