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

@Entity('merchant_log')
export class MerchantLog extends BaseEntity {
  @PrimaryGeneratedColumn({
    comment: 'the unique identifier',
  })
  idMerchantLog: number;

  @Column({
    type: 'int',
    nullable: false,
  })
  Merchant_idMerchant: number;

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

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

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

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

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

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

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

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