Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Business.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('business'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
id => { type => 'integer', not_null => 1, sequence => 'id' },
|
|
12 |
customernumberinit => { type => 'text' },
|
|
13 | 13 |
description => { type => 'text' }, |
14 | 14 |
discount => { type => 'float', precision => 4 }, |
15 |
customernumberinit => { type => 'text' }, |
|
16 |
salesman => { type => 'boolean', default => 'false' }, |
|
15 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
17 | 16 |
itime => { type => 'timestamp', default => 'now()' }, |
18 | 17 |
mtime => { type => 'timestamp' }, |
18 |
salesman => { type => 'boolean', default => 'false' }, |
|
19 | 19 |
); |
20 | 20 |
|
21 | 21 |
__PACKAGE__->meta->primary_key_columns([ '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