Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Bin.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('bin'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
13 |
warehouse_id => { type => 'integer', not_null => 1 }, |
|
14 | 12 |
description => { type => 'text' }, |
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
15 | 14 |
itime => { type => 'timestamp', default => 'now()' }, |
16 | 15 |
mtime => { type => 'timestamp' }, |
16 |
warehouse_id => { type => 'integer', not_null => 1 }, |
|
17 | 17 |
); |
18 | 18 |
|
19 | 19 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
... | ... | |
27 | 27 |
}, |
28 | 28 |
); |
29 | 29 |
|
30 |
# __PACKAGE__->meta->initialize; |
|
31 |
|
|
32 | 30 |
1; |
33 | 31 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren