Revision d2c5f647
Von Moritz Bunkus vor etwa 9 Jahren hinzugefügt
SL/DB/MetaSetup/AuthGroupRight.pm | ||
---|---|---|
4 | 4 |
|
5 | 5 |
use strict; |
6 | 6 |
|
7 |
use base qw(SL::DB::Object);
|
|
7 |
use parent qw(SL::DB::Object);
|
|
8 | 8 |
|
9 | 9 |
__PACKAGE__->meta->table('group_rights'); |
10 | 10 |
__PACKAGE__->meta->schema('auth'); |
11 | 11 |
|
12 | 12 |
__PACKAGE__->meta->columns( |
13 |
granted => { type => 'boolean', not_null => 1 }, |
|
13 | 14 |
group_id => { type => 'integer', not_null => 1 }, |
14 | 15 |
right => { type => 'text', not_null => 1 }, |
15 |
granted => { type => 'boolean', not_null => 1 }, |
|
16 | 16 |
); |
17 | 17 |
|
18 | 18 |
__PACKAGE__->meta->primary_key_columns([ 'group_id', 'right' ]); |
... | ... | |
24 | 24 |
}, |
25 | 25 |
); |
26 | 26 |
|
27 |
# __PACKAGE__->meta->initialize; |
|
28 |
|
|
29 | 27 |
1; |
30 | 28 |
; |
Auch abrufbar als: Unified diff
rose_auto_create_model.pl: --all behandelt auch auth-Tabellen