update role list to string
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from 'typeorm';
|
||||
|
||||
import { Status } from '../types/status';
|
||||
import { RoleList } from '../types/role';
|
||||
|
||||
@Entity('user_roles')
|
||||
export class UserRole {
|
||||
@ -19,7 +18,7 @@ export class UserRole {
|
||||
nullable: false,
|
||||
type: 'jsonb'
|
||||
})
|
||||
roles: RoleList[];
|
||||
roles: string[];
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
|
||||
Reference in New Issue
Block a user