Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/FollowUpAccess.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('follow_up_access'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
who => { type => 'integer', not_null => 1 }, |
|
13 |
what => { type => 'integer', not_null => 1 }, |
|
14 | 12 |
id => { type => 'serial', not_null => 1 }, |
13 |
what => { type => 'integer', not_null => 1 }, |
|
14 |
who => { type => 'integer', not_null => 1 }, |
|
15 | 15 |
); |
16 | 16 |
|
17 | 17 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
... | ... | |
19 | 19 |
__PACKAGE__->meta->foreign_keys( |
20 | 20 |
employee => { |
21 | 21 |
class => 'SL::DB::Employee', |
22 |
key_columns => { who => 'id' },
|
|
22 |
key_columns => { what => 'id' },
|
|
23 | 23 |
}, |
24 | 24 |
|
25 | 25 |
employee_obj => { |
26 | 26 |
class => 'SL::DB::Employee', |
27 |
key_columns => { what => 'id' },
|
|
27 |
key_columns => { who => 'id' },
|
|
28 | 28 |
}, |
29 | 29 |
); |
30 | 30 |
|
31 |
# __PACKAGE__->meta->initialize; |
|
32 |
|
|
33 | 31 |
1; |
34 | 32 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren