Commit bc2a0170 authored by “Yevgeniy's avatar “Yevgeniy

#32 change enum in role User model

parent 765e2914
......@@ -20,7 +20,7 @@ import {Project} from './Project';
const SALT_WORK_FACTOR= 10;
type userRoleType = "worker" | "director";
type userRoleType = ["user" , "director","superuser"];
interface IUser {
id:string;
......@@ -67,8 +67,8 @@ export class User extends BaseEntity implements IUser {
@Column({
type: "enum",
enum: ["worker", "director"],
default: "worker"
enum: ["user", "director","superuser"],
default: "user"
})
role!: userRoleType
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment