package cn.lihongjie.coal.coalPrice.entity;

import cn.lihongjie.coal.base.entity.OrgCommonEntity;
import cn.lihongjie.coal.coalInfo.entity.CoalInfoEntity;

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_coal_price_org_id", columnList = "organization_id"))

public class CoalPriceEntity extends OrgCommonEntity {

    @Comment("煤源")
    @ManyToOne
    private CoalInfoEntity coalInfo;

    @Comment("价格")
    private Double price;
}