🚧 Permission
This commit is contained in:
parent
63843cc4c9
commit
e4d5afbebe
@ -7,10 +7,10 @@ import {
|
|||||||
} from "class-validator";
|
} from "class-validator";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the UserGroup interface.
|
* Defines the Permission interface.
|
||||||
*/
|
*/
|
||||||
@Entity()
|
@Entity()
|
||||||
export abstract class UserGroup {
|
export abstract class Permission {
|
||||||
/**
|
/**
|
||||||
* Autogenerated unique id (primary key).
|
* Autogenerated unique id (primary key).
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { Entity, Column, OneToMany, ManyToOne, PrimaryGeneratedColumn, Generated, Unique, JoinTable, ManyToMany } 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';
|
||||||
|
import { Permission } from './Permission';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines a admin user.
|
* Defines a admin user.
|
||||||
@ -64,11 +65,11 @@ export class User {
|
|||||||
password: string;
|
password: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* userpermissions
|
* permissions
|
||||||
*/
|
*/
|
||||||
// TODO: UserPermission implementation
|
// TODO: Permission implementation
|
||||||
// @OneToMany(() => UserPermission,userpermission=>)
|
// @OneToMany(() => Permission,userpermission=>)
|
||||||
// userpermissions: UserPermission[];
|
// permissions: Permission[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* groups
|
* groups
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
IsOptional,
|
IsOptional,
|
||||||
IsString,
|
IsString,
|
||||||
} from "class-validator";
|
} from "class-validator";
|
||||||
import { User } from "./User";
|
import { Permission } from "./Permission";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the UserGroup interface.
|
* Defines the UserGroup interface.
|
||||||
@ -40,5 +40,5 @@ export abstract class UserGroup {
|
|||||||
* TODO: Something about permission stuff
|
* TODO: Something about permission stuff
|
||||||
*/
|
*/
|
||||||
// TODO:
|
// TODO:
|
||||||
// grouppermissions: GroupPermissions[];
|
// grouppermissions: Permission[];
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user