Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Tax.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('tax'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
chart_categories => { type => 'text', not_null => 1 }, |
|
12 | 13 |
chart_id => { type => 'integer' }, |
13 |
rate => { type => 'numeric', default => '0', not_null => 1, precision => 5, scale => 15 }, |
|
14 |
taxnumber => { type => 'text' }, |
|
15 |
taxkey => { type => 'integer', not_null => 1 }, |
|
16 |
taxdescription => { type => 'text', not_null => 1 }, |
|
14 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
17 | 15 |
itime => { type => 'timestamp', default => 'now()' }, |
18 | 16 |
mtime => { type => 'timestamp' }, |
19 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
20 |
chart_categories => { type => 'text', not_null => 1 }, |
|
17 |
rate => { type => 'numeric', default => '0', not_null => 1, precision => 5, scale => 15 }, |
|
18 |
taxdescription => { type => 'text', not_null => 1 }, |
|
19 |
taxkey => { type => 'integer', not_null => 1 }, |
|
20 |
taxnumber => { type => 'text' }, |
|
21 | 21 |
); |
22 | 22 |
|
23 | 23 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
... | ... | |
31 | 31 |
}, |
32 | 32 |
); |
33 | 33 |
|
34 |
# __PACKAGE__->meta->initialize; |
|
35 |
|
|
36 | 34 |
1; |
37 | 35 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren