Merge branch 'feature/11-new_classes' of https://git.odit.services/lfk/backend into feature/11-new_classes
This commit is contained in:
commit
63843cc4c9
@ -1,4 +1,4 @@
|
|||||||
import { Entity, Column, OneToMany, ManyToOne, PrimaryGeneratedColumn, Generated, Unique } from "typeorm";
|
import { Entity, Column, OneToMany, ManyToOne, PrimaryGeneratedColumn, Generated, Unique, JoinTable, ManyToMany } from "typeorm";
|
||||||
import { IsBoolean, IsEmail, IsInt, IsNotEmpty, IsOptional, IsString, isUUID, } from "class-validator";
|
import { IsBoolean, IsEmail, IsInt, IsNotEmpty, IsOptional, IsString, isUUID, } from "class-validator";
|
||||||
import { UserGroup } from './UserGroup';
|
import { UserGroup } from './UserGroup';
|
||||||
|
|
||||||
@ -73,9 +73,8 @@ export class User {
|
|||||||
/**
|
/**
|
||||||
* groups
|
* groups
|
||||||
*/
|
*/
|
||||||
// TODO: UserGroup implementation
|
@ManyToMany(() => UserGroup)
|
||||||
// @OneToMany(() => UserGroup, usergroup => usergroup.)
|
@JoinTable()
|
||||||
@IsOptional()
|
|
||||||
groups: UserGroup[];
|
groups: UserGroup[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,7 +37,7 @@ export abstract class UserGroup {
|
|||||||
description: string;
|
description: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to link users to a user group.
|
* TODO: Something about permission stuff
|
||||||
*/
|
*/
|
||||||
// TODO:
|
// TODO:
|
||||||
// grouppermissions: GroupPermissions[];
|
// grouppermissions: GroupPermissions[];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user