import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('sms_history')
export class SMSHistory extends BaseEntity {
  @PrimaryGeneratedColumn({
    comment: 'the unique identifier',
  })
  idSMS_History: number;
  @Column({
    type: 'int',
    nullable: false,
  })
  SMS_Templates_idSMS_Templates: number;

  @Column({
    type: 'int',
    nullable: false,
  })
  Customer_idCustomer: number;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Contact_No: string;

  @Column({
    type: 'text',
    nullable: false,
  })
  Message: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Date_Time: string;
  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Delivery_Status: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Delivery_Time: string;
}
