mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 14:38:12 +00:00
25 lines
346 B
TypeScript
25 lines
346 B
TypeScript
// otp.entity.ts
|
|
|
|
import {
|
|
Column,
|
|
Entity,
|
|
} from "typeorm";
|
|
import { BaseEntity } from "@edr/api-common";
|
|
|
|
@Entity({
|
|
name: "otp_verifications",
|
|
})
|
|
export class OtpVerification extends BaseEntity{
|
|
@Column({
|
|
unique: true,
|
|
})
|
|
phone!: string;
|
|
|
|
@Column()
|
|
otp!: string;
|
|
|
|
@Column({
|
|
default: false,
|
|
})
|
|
verified!: boolean;
|
|
} |