add user group components

This commit is contained in:
Roland Schneider
2025-11-20 15:40:24 +01:00
parent e050bf5def
commit cc483e6ed5
23 changed files with 848 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import {
JoinTable,
} from 'typeorm';
import { UserRole } from './user-role';
import { IsString } from 'class-validator';
@Entity()
export class UserGroup {
@@ -13,6 +14,7 @@ export class UserGroup {
id: number;
@Column({ unique: true })
@IsString()
name: string;
@ManyToMany(() => UserRole)