import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('customer_saving_log')
export class CustomerSavingLog extends BaseEntity {
  @PrimaryGeneratedColumn({
    comment: 'the unique identifier',
  })
  idCustomer_Saving_Log: number;

  @Column({
    type: 'int',
    nullable: false,
  })
  Customer_Savings_idCustomer_Savings: number;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Date_Time: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Transaction_Type: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Transaction_Id: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Credit: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Debit: string;

  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Balance: string;

  @Column({
    type: 'text',
    nullable: false,
  })
  Note: string;
}
