// 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;
}