update
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Entity, Property, BaseEntity, OneToMany, Collection } from '@mikro-orm/core';
|
||||
import { Entity, Property, OneToMany, Collection } from '@mikro-orm/core';
|
||||
import { RefreshToken } from './refresh-token.entity';
|
||||
import { BaseEntity } from 'src/common/entities/base.entity';
|
||||
|
||||
@Entity({ tableName: 'users' })
|
||||
export class User extends BaseEntity {
|
||||
@@ -13,7 +14,7 @@ export class User extends BaseEntity {
|
||||
phone!: string;
|
||||
|
||||
@Property({ default: true })
|
||||
isActive: boolean = true;
|
||||
isActive?: boolean;
|
||||
|
||||
@OneToMany(() => RefreshToken, token => token.user)
|
||||
refreshTokens = new Collection<RefreshToken>(this);
|
||||
|
||||
Reference in New Issue
Block a user