Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/AuditTrail.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('audittrail'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
trans_id => { type => 'integer' }, |
|
13 |
tablename => { type => 'text' }, |
|
14 |
reference => { type => 'text' }, |
|
15 |
formname => { type => 'text' }, |
|
16 | 12 |
action => { type => 'text' }, |
17 |
transdate => { type => 'timestamp', default => 'now' }, |
|
18 | 13 |
employee_id => { type => 'integer' }, |
14 |
formname => { type => 'text' }, |
|
19 | 15 |
id => { type => 'serial', not_null => 1 }, |
16 |
reference => { type => 'text' }, |
|
17 |
tablename => { type => 'text' }, |
|
18 |
trans_id => { type => 'integer' }, |
|
19 |
transdate => { type => 'timestamp', default => 'now' }, |
|
20 | 20 |
); |
21 | 21 |
|
22 | 22 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
23 | 23 |
|
24 |
# __PACKAGE__->meta->initialize; |
|
25 |
|
|
26 | 24 |
1; |
27 | 25 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren