Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / SL / DB / MetaSetup / AuthGroupRight.pm
1 # This file has been auto-generated. Do not modify it; it will be overwritten
2 # by rose_auto_create_model.pl automatically.
3 package SL::DB::AuthGroupRight;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('group_rights');
10 __PACKAGE__->meta->schema('auth');
11
12 __PACKAGE__->meta->columns(
13   granted  => { type => 'boolean', not_null => 1 },
14   group_id => { type => 'integer', not_null => 1 },
15   right    => { type => 'text', not_null => 1 },
16 );
17
18 __PACKAGE__->meta->primary_key_columns([ 'group_id', 'right' ]);
19
20 __PACKAGE__->meta->foreign_keys(
21   group => {
22     class       => 'SL::DB::AuthGroup',
23     key_columns => { group_id => 'id' },
24   },
25 );
26
27 1;
28 ;