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

@Entity('shop_item')
export class ShopItem extends BaseEntity {
  @PrimaryGeneratedColumn({
    comment: 'the unique identifier',
  })
  idShop_Item: number;
  @Column({
    type: 'varchar',
    length: 45,
    nullable: false,
  })
  Item_Name: string;

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

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

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

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

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

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