package cn.lihongjie.coal.inventoryCheckDetail.entity;

import cn.lihongjie.coal.base.entity.OrgCommonEntity;
import cn.lihongjie.coal.coalInfo.entity.CoalInfoEntity;
import cn.lihongjie.coal.inventoryCheck.entity.InventoryCheckEntity;
import cn.lihongjie.coal.product.entity.ProductEntity;

import jakarta.persistence.Entity;
import jakarta.persistence.ManyToOne;

import lombok.Data;

import org.hibernate.annotations.Comment;

@Data
@Entity

@jakarta.persistence.Table(indexes = @jakarta.persistence.Index(name ="idx_inventory_check_detail_org_id", columnList = "organization_id"))

public class InventoryCheckDetailEntity extends OrgCommonEntity {


    @ManyToOne
    private InventoryCheckEntity inventoryCheck;

    @Comment("盘点类型")
    private String checkType;

    @ManyToOne
    private CoalInfoEntity coalInfo;



    @ManyToOne
    private ProductEntity product;



    private Double amount;

}