import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('marchant_user')
export class Marchantuser extends BaseEntity {
  @PrimaryGeneratedColumn({
    comment: 'the unique identifier',
  })
  idMarchant_User: number;

  @Column({
    type: 'varchar',
    length: 255,
    nullable: false,
  })
  Full_Name: string;

  @Column({
    type: 'varchar',
    length: 255,
    nullable: false,
    unique: true,
  })
  Email: string;

  @Column({
    type: 'varchar',
    length: 255,
    nullable: false,
    unique: false,
  })
  Contact_no: string;

  @Column({
    type: 'varchar',
    length: 255,
    nullable: false,
  })
  Password: string;

  @Column({
    type: 'varchar',
    length: 255,
    nullable: true,
  })
  OTP: string;

  @Column({
    type: 'varchar',
    length: 255,
    nullable: true,
  })
  OTP_Time: string;

  @Column({
    type: 'int',
  })
  Marchant_Location_idMarchant_Location: number;
}
