Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Project.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('project'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
id => { type => 'integer', not_null => 1, sequence => 'id' },
|
|
13 |
projectnumber => { type => 'text' },
|
|
12 |
active => { type => 'boolean', default => 'true' },
|
|
13 |
customer_id => { type => 'integer' },
|
|
14 | 14 |
description => { type => 'text' }, |
15 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
15 | 16 |
itime => { type => 'timestamp', default => 'now()' }, |
16 | 17 |
mtime => { type => 'timestamp' }, |
17 |
active => { type => 'boolean', default => 'true' }, |
|
18 |
customer_id => { type => 'integer' }, |
|
18 |
projectnumber => { type => 'text' }, |
|
19 | 19 |
type => { type => 'text' }, |
20 | 20 |
valid => { type => 'boolean', default => 'true' }, |
21 | 21 |
); |
... | ... | |
33 | 33 |
}, |
34 | 34 |
); |
35 | 35 |
|
36 |
# __PACKAGE__->meta->initialize; |
|
37 |
|
|
38 | 36 |
1; |
39 | 37 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren