projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pflichtenheftvorlagen einfügen
[kivitendo-erp.git]
/
SL
/
DB
/
MetaSetup
/
AuthUserGroup.pm
diff --git
a/SL/DB/MetaSetup/AuthUserGroup.pm
b/SL/DB/MetaSetup/AuthUserGroup.pm
index
f185014
..
6b470cf
100644
(file)
--- a/
SL/DB/MetaSetup/AuthUserGroup.pm
+++ b/
SL/DB/MetaSetup/AuthUserGroup.pm
@@
-6,16
+6,29
@@
use strict;
use base qw(SL::DB::Object);
use base qw(SL::DB::Object);
-__PACKAGE__->meta->
setup(
- table => 'user_group',
+__PACKAGE__->meta->
table('user_group');
+__PACKAGE__->meta->schema('auth');
- columns => [
- user_id => { type => 'integer', not_null => 1 },
- group_id => { type => 'integer', not_null => 1 },
- ],
+__PACKAGE__->meta->columns(
+ user_id => { type => 'integer', not_null => 1 },
+ group_id => { type => 'integer', not_null => 1 },
+);
+
+__PACKAGE__->meta->primary_key_columns([ 'user_id', 'group_id' ]);
- primary_key_columns => [ 'user_id', 'group_id' ],
+__PACKAGE__->meta->foreign_keys(
+ group => {
+ class => 'SL::DB::AuthGroup',
+ key_columns => { group_id => 'id' },
+ },
+
+ user => {
+ class => 'SL::DB::AuthUser',
+ key_columns => { user_id => 'id' },
+ },
);
);
+# __PACKAGE__->meta->initialize;
+
1;
;
1;
;