Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/PeriodicInvoice.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('periodic_invoices'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
13 |
config_id => { type => 'integer', not_null => 1 }, |
|
14 | 12 |
ar_id => { type => 'integer', not_null => 1 }, |
15 |
period_start_date => { type => 'date', not_null => 1 }, |
|
13 |
config_id => { type => 'integer', not_null => 1 }, |
|
14 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
16 | 15 |
itime => { type => 'timestamp', default => 'now()' }, |
16 |
period_start_date => { type => 'date', not_null => 1 }, |
|
17 | 17 |
); |
18 | 18 |
|
19 | 19 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
... | ... | |
32 | 32 |
}, |
33 | 33 |
); |
34 | 34 |
|
35 |
# __PACKAGE__->meta->initialize; |
|
36 |
|
|
37 | 35 |
1; |
38 | 36 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren