Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/FollowUpLink.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('follow_up_links'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
id => { type => 'integer', not_null => 1, sequence => 'follow_up_link_id' }, |
|
13 | 12 |
follow_up_id => { type => 'integer', not_null => 1 }, |
14 |
trans_id => { type => 'integer', not_null => 1 }, |
|
15 |
trans_type => { type => 'text', not_null => 1 }, |
|
16 |
trans_info => { type => 'text' }, |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'follow_up_link_id' }, |
|
17 | 14 |
itime => { type => 'timestamp', default => 'now()' }, |
18 | 15 |
mtime => { type => 'timestamp' }, |
16 |
trans_id => { type => 'integer', not_null => 1 }, |
|
17 |
trans_info => { type => 'text' }, |
|
18 |
trans_type => { type => 'text', not_null => 1 }, |
|
19 | 19 |
); |
20 | 20 |
|
21 | 21 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
... | ... | |
29 | 29 |
}, |
30 | 30 |
); |
31 | 31 |
|
32 |
# __PACKAGE__->meta->initialize; |
|
33 |
|
|
34 | 32 |
1; |
35 | 33 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren