package com.jeesharp.business.modules.mall.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 砍价发起记录
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mall_bargain_record")
public class MallBargainRecord extends BaseEntity<MallBargainRecord> {

    /**
     * 活动ID
     */
    private String activityId;

    /**
     * 发起人会员ID
     */
    private String memberId;

    /**
     * 当前已砍至价格
     */
    private BigDecimal currentPrice;

    /**
     * 已助力次数
     */
    private Integer helpCount;

    /**
     * 砍价状态：0-进行中 1-已达底价 2-已下单 3-已过期
     */
    private Integer status;

    /**
     * 成单后订单ID
     */
    private String orderId;

    /**
     * 砍价结束时间
     */
    private java.util.Date endTime;
}