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

@Entity('customer_log')
export class CustomerLog extends BaseEntity {
  @PrimaryGeneratedColumn({
    comment: 'the unique identifier',
  })
  idCustomerLog: number;

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

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Child_Account_Id: string;
  @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;
}
