update user, auth, token, roles, done
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import bcrypt from 'bcryptjs';
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from 'typeorm';
|
||||
|
||||
import { Role } from '../types/role';
|
||||
import { Status } from '../types/status';
|
||||
|
||||
@Entity('users')
|
||||
@ -38,10 +37,9 @@ export class User {
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
default: 'STAFF' as Role,
|
||||
length: 30,
|
||||
type: 'uuid'
|
||||
})
|
||||
role: Role;
|
||||
id_role: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
|
||||
Reference in New Issue
Block a user