Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/PaymentTerm.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('payment_terms'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
13 | 12 |
description => { type => 'text' }, |
14 | 13 |
description_long => { type => 'text' }, |
15 |
terms_netto => { type => 'integer' }, |
|
16 |
terms_skonto => { type => 'integer' }, |
|
17 |
percent_skonto => { type => 'float', precision => 4 }, |
|
14 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
18 | 15 |
itime => { type => 'timestamp', default => 'now()' }, |
19 | 16 |
mtime => { type => 'timestamp' }, |
17 |
percent_skonto => { type => 'float', precision => 4 }, |
|
20 | 18 |
ranking => { type => 'integer' }, |
21 | 19 |
sortkey => { type => 'integer', not_null => 1 }, |
20 |
terms_netto => { type => 'integer' }, |
|
21 |
terms_skonto => { type => 'integer' }, |
|
22 | 22 |
); |
23 | 23 |
|
24 | 24 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
25 | 25 |
|
26 | 26 |
__PACKAGE__->meta->allow_inline_column_values(1); |
27 | 27 |
|
28 |
# __PACKAGE__->meta->initialize; |
|
29 |
|
|
30 | 28 |
1; |
31 | 29 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren