Revision 3568f2f8
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/AuthUserGroup.pm | ||
---|---|---|
8 | 8 |
|
9 | 9 |
__PACKAGE__->meta->setup( |
10 | 10 |
table => 'user_group', |
11 |
schema => 'auth', |
|
11 | 12 |
|
12 | 13 |
columns => [ |
13 | 14 |
user_id => { type => 'integer', not_null => 1 }, |
... | ... | |
15 | 16 |
], |
16 | 17 |
|
17 | 18 |
primary_key_columns => [ 'user_id', 'group_id' ], |
19 |
|
|
20 |
foreign_keys => [ |
|
21 |
user => { |
|
22 |
class => 'SL::DB::AuthUser', |
|
23 |
key_columns => { user_id => 'id' }, |
|
24 |
}, |
|
25 |
|
|
26 |
group => { |
|
27 |
class => 'SL::DB::AuthGroup', |
|
28 |
key_columns => { group_id => 'id' }, |
|
29 |
}, |
|
30 |
], |
|
18 | 31 |
); |
19 | 32 |
|
20 | 33 |
1; |
Auch abrufbar als: Unified diff
RDBO: Setups der Auth*-Instanzen vereinheitlicht