Revision d2c5f647
Von Moritz Bunkus vor etwa 9 Jahren hinzugefügt
SL/DB/MetaSetup/AuthGroup.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'); |
10 | 10 |
__PACKAGE__->meta->schema('auth'); |
11 | 11 |
|
12 | 12 |
__PACKAGE__->meta->columns( |
13 |
description => { type => 'text' }, |
|
13 | 14 |
id => { type => 'serial', not_null => 1 }, |
14 | 15 |
name => { type => 'text', not_null => 1 }, |
15 |
description => { type => 'text' }, |
|
16 | 16 |
); |
17 | 17 |
|
18 | 18 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
19 | 19 |
|
20 | 20 |
__PACKAGE__->meta->unique_keys([ 'name' ]); |
21 | 21 |
|
22 |
# __PACKAGE__->meta->initialize; |
|
23 |
|
|
24 | 22 |
1; |
25 | 23 |
; |
Auch abrufbar als: Unified diff
rose_auto_create_model.pl: --all behandelt auch auth-Tabellen