import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('payment_methods')
export class PaymentMethods extends BaseEntity {
  @PrimaryGeneratedColumn({
    comment: 'the unique identifier',
  })
  idPayment_Methods: number;
  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Method_Type: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Visa_Master: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Card_No: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Name_On_Card: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  MM: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  YY: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  CSV: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: true,
    default: 1,
  })
  Status: string;
  @Column({
    type: 'int',
    nullable: false,
  })
  Customer_idCustomer: number;
}
