--- /dev/null
+# This file has been auto-generated only because it didn't exist.
+# Feel free to modify it at will; it will not be overwritten automatically.
+
+package SL::DB::AuthClient;
+
+use strict;
+
+use SL::DB::MetaSetup::AuthClient;
+
+# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
+__PACKAGE__->meta->schema('auth');
+
+__PACKAGE__->meta->make_manager_class;
+
+__PACKAGE__->meta->add_relationship(
+ users => {
+ type => 'many to many',
+ map_class => 'SL::DB::AuthUserGroup',
+ map_from => 'client',
+ map_to => 'user',
+ },
+ groups => {
+ type => 'many to many',
+ map_class => 'SL::DB::AuthUserGroup',
+ map_from => 'client',
+ map_to => 'group',
+ },
+);
+
+__PACKAGE__->meta->initialize;
+
+1;
--- /dev/null
+# This file has been auto-generated only because it didn't exist.
+# Feel free to modify it at will; it will not be overwritten automatically.
+
+package SL::DB::AuthClientGroup;
+
+use strict;
+
+use SL::DB::MetaSetup::AuthClientGroup;
+
+# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
+__PACKAGE__->meta->schema('auth');
+
+__PACKAGE__->meta->make_manager_class;
+
+1;
--- /dev/null
+# This file has been auto-generated only because it didn't exist.
+# Feel free to modify it at will; it will not be overwritten automatically.
+
+package SL::DB::AuthClientUser;
+
+use strict;
+
+use SL::DB::MetaSetup::AuthClientUser;
+
+# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
+__PACKAGE__->meta->schema('auth');
+
+__PACKAGE__->meta->make_manager_class;
+
+1;
class => 'SL::DB::AuthGroupRight',
column_map => { id => 'group_id' },
},
+ clients => {
+ type => 'many to many',
+ map_class => 'SL::DB::AuthClient',
+ map_from => 'group',
+ map_to => 'client',
+ },
);
__PACKAGE__->meta->initialize;
class => 'SL::DB::AuthUserConfig',
column_map => { id => 'user_id' },
},
+ clients => {
+ type => 'many to many',
+ map_class => 'SL::DB::AuthClient',
+ map_from => 'user',
+ map_to => 'client',
+ },
);
__PACKAGE__->meta->initialize;
use SL::DB::AccTransaction;
use SL::DB::Assembly;
use SL::DB::AuditTrail;
+use SL::DB::AuthClient;
+use SL::DB::AuthClientUser;
+use SL::DB::AuthClientGroup;
use SL::DB::AuthGroup;
use SL::DB::AuthGroupRight;
use SL::DB::AuthUser;
my %lxoffice_package_names = (
acc_trans => 'acc_transaction',
audittrail => 'audit_trail',
- auth_group => 'auth_groups',
- auth_group_right => 'auth_group_rights',
- auth_user => 'auth_users',
- auth_user_config => 'auth_user_configs',
- auth_user_group => 'auth_user_groups',
+ 'auth.clients' => 'auth_client',
+ 'auth.clients_users' => 'auth_client_user',
+ 'auth.clients_groups' => 'auth_client_group',
+ 'auth.group' => 'auth_groups',
+ 'auth.group_right' => 'auth_group_rights',
+ 'auth.user' => 'auth_users',
+ 'auth.user_config' => 'auth_user_configs',
+ 'auth.user_group' => 'auth_user_groups',
ar => 'invoice',
ap => 'purchase_invoice',
background_jobs => 'background_job',
--- /dev/null
+# This file has been auto-generated. Do not modify it; it will be overwritten
+# by rose_auto_create_model.pl automatically.
+package SL::DB::AuthClient;
+
+use strict;
+
+use base qw(SL::DB::Object);
+
+__PACKAGE__->meta->setup(
+ table => 'clients',
+
+ columns => [
+ id => { type => 'serial', not_null => 1 },
+ name => { type => 'text', not_null => 1 },
+ dbhost => { type => 'text', not_null => 1 },
+ dbport => { type => 'integer', default => 5432, not_null => 1 },
+ dbname => { type => 'text', not_null => 1 },
+ dbuser => { type => 'text', not_null => 1 },
+ dbpasswd => { type => 'text', not_null => 1 },
+ is_default => { type => 'boolean', default => 'false', not_null => 1 },
+ ],
+
+ primary_key_columns => [ 'id' ],
+
+ unique_keys => [
+ [ 'dbhost', 'dbport', 'dbname' ],
+ [ 'name' ],
+ ],
+);
+
+1;
+;
--- /dev/null
+# This file has been auto-generated. Do not modify it; it will be overwritten
+# by rose_auto_create_model.pl automatically.
+package SL::DB::AuthClientGroup;
+
+use strict;
+
+use base qw(SL::DB::Object);
+
+__PACKAGE__->meta->setup(
+ table => 'clients_groups',
+
+ columns => [
+ client_id => { type => 'integer', not_null => 1 },
+ group_id => { type => 'integer', not_null => 1 },
+ ],
+
+ primary_key_columns => [ 'client_id', 'group_id' ],
+
+ foreign_keys => [
+ client => {
+ class => 'SL::DB::AuthClient',
+ key_columns => { client_id => 'id' },
+ },
+
+ group => {
+ class => 'SL::DB::AuthGroup',
+ key_columns => { group_id => 'id' },
+ },
+ ],
+);
+
+1;
+;
--- /dev/null
+# This file has been auto-generated. Do not modify it; it will be overwritten
+# by rose_auto_create_model.pl automatically.
+package SL::DB::AuthClientUser;
+
+use strict;
+
+use base qw(SL::DB::Object);
+
+__PACKAGE__->meta->setup(
+ table => 'clients_users',
+
+ columns => [
+ client_id => { type => 'integer', not_null => 1 },
+ user_id => { type => 'integer', not_null => 1 },
+ ],
+
+ primary_key_columns => [ 'client_id', 'user_id' ],
+
+ foreign_keys => [
+ client => {
+ class => 'SL::DB::AuthClient',
+ key_columns => { client_id => 'id' },
+ },
+
+ user => {
+ class => 'SL::DB::AuthUser',
+ key_columns => { user_id => 'id' },
+ },
+ ],
+);
+
+1;
+;