mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 18:56:22 +00:00
added deleted at
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { Column, Entity } from 'typeorm';
|
||||
import { Column, DeleteDateColumn, Entity } from 'typeorm';
|
||||
import { AbstractEntity } from '../../abstract/entities/abstract.entity';
|
||||
import { UserOtpDto } from '../dtos';
|
||||
import { OtpType } from '../../../../src/constants/otp-type.enum';
|
||||
@ -27,6 +27,9 @@ export class UserOtpEntity extends AbstractEntity<UserOtpDto> {
|
||||
})
|
||||
type: OtpType;
|
||||
|
||||
@DeleteDateColumn({ nullable: true })
|
||||
deletedAt?: Date;
|
||||
|
||||
constructor(partial: Partial<UserOtpEntity>) {
|
||||
super();
|
||||
Object.assign(this, partial);
|
||||
|
Reference in New Issue
Block a user