package org.dromara.mall.promotion.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 拼团订单对象 mall_group_buy_order
 *
 * @author pengles
 */
@Data
@EqualsAndHashCode
@TableName("mall_group_buy_order")
public class MallGroupBuyOrder implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
    private Long id;

    /**
     * 拼团ID
     */
    private Long groupBuyId;

    /**
     * 拼团编号
     */
    private String groupNo;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 状态(0拼团中 1已成团 2已失败)
     */
    private Integer status;

    /**
     * 成团时间
     */
    private Date successTime;

    /**
     * 过期时间
     */
    private Date expireTime;

    /**
     * 创建时间
     */
    private Date createTime;

}
