package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 商品交割关系明细表
 * </p>
 *
 * @author XKF
 * @since 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("DELIVERYRELATIONDETAIL")
@ApiModel(value="Deliveryrelationdetail对象", description="商品交割关系明细表")
public class Deliveryrelationdetail extends Model<Deliveryrelationdetail> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "交易合约ID")
    private Long goodsid;

    @ApiModelProperty(value = "选择项ID")
    @TableField("DGFACTORYITEMID")
    private Long dgfactoryitemid;

    @ApiModelProperty(value = "要素项类型ID")
    @TableField("DGFACTORYITEMTYPEID")
    private Long dgfactoryitemtypeid;

    @ApiModelProperty(value = "升贴水值")
    @TableField("PREMIUMVALUE")
    private BigDecimal premiumvalue;


    @Override
    public Serializable pkVal() {
        return this.goodsid;
    }

}
