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'; ...@@ -20,7 +20,7 @@ import {Project} from './Project';
const SALT_WORK_FACTOR= 10; const SALT_WORK_FACTOR= 10;
type userRoleType = "worker" | "director"; type userRoleType = ["user" , "director","superuser"];
interface IUser { interface IUser {
id:string; id:string;
...@@ -67,8 +67,8 @@ export class User extends BaseEntity implements IUser { ...@@ -67,8 +67,8 @@ export class User extends BaseEntity implements IUser {
@Column({ @Column({
type: "enum", type: "enum",
enum: ["worker", "director"], enum: ["user", "director","superuser"],
default: "worker" default: "user"
}) })
role!: userRoleType 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