mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 15:18:11 +00:00
user account create
This commit is contained in:
25
apps/edr-freight-api/src/modules/otp/otp.entity.ts
Normal file
25
apps/edr-freight-api/src/modules/otp/otp.entity.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user