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

@Entity('merchant')
export class Merchant extends BaseEntity {
  @PrimaryGeneratedColumn({
    comment: 'the unique identifier',
  })
  idMerchant: number;

  @Column({
    type: 'varchar',
    length: 255,
    nullable: false,
  })
  No: string;
  @Column({
    type: 'int',
    nullable: false,
  })
  Merchant_type_idMerchant_type: number;
  @Column({
    type: 'varchar',
    length: 255,
    nullable: false,
  })
  Description: string;
  @Column({
    type: 'text',
    nullable: false,
  })
  Story: string;
  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Shop_Online_Status: string;
  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Shop_in_Store_Status: string;
  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Fb_Status: string;
  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Instagram_Status: string;
  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Other_Status: string;
  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Other2_Status: string;
  @Column({
    type: 'varchar',
    length: 200,
    nullable: false,
  })
  Logo_Path: string;
  @Column({
    type: 'varchar',
    length: 200,
    nullable: false,
  })
  Owner_Full_Name: string;

  @Column({
    type: 'varchar',
    length: 200,
    nullable: false,
  })
  NIC: string;
  @Column({
    type: 'varchar',
    length: 200,
    nullable: false,
  })
  Email: string;
  @Column({
    type: 'varchar',
    length: 200,
    nullable: false,
  })
  Password: string;
  @Column({
    type: 'varchar',
    length: 200,
    nullable: true,
  })
  OTP: string;
  @Column({
    type: 'varchar',
    length: 200,
    nullable: true,
  })
  OTP_Time: string;

  @Column({
    type: 'int',
    nullable: true,
  })
  User_idUser: number;
  @Column({
    type: 'varchar',
    length: 4,
    nullable: true,
  })
  Flex_Share_Percentage: number;

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

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

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

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


}
