add: member by superrior
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
import { Roles } from 'src/configurable/entities/roles.entity';
|
||||
import {
|
||||
Entity,
|
||||
Column,
|
||||
PrimaryGeneratedColumn, ManyToOne,
|
||||
} from 'typeorm';
|
||||
import { Entity, Column, PrimaryGeneratedColumn, ManyToOne } from 'typeorm';
|
||||
import { BaseModel } from '../../config/basemodel.entity';
|
||||
import { hashPassword } from '../../helper/hash_password';
|
||||
|
||||
@@ -33,7 +29,7 @@ export class User extends BaseModel {
|
||||
},
|
||||
)
|
||||
superior: User;
|
||||
|
||||
|
||||
@ManyToOne(
|
||||
() => {
|
||||
return Roles;
|
||||
|
||||
Reference in New Issue
Block a user