package com.hzs.common.domain.activity.tree;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 沙棘树活动购买订单表
 * </p>
 *
 * @author zhangjing
 * @since 2023-06-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("SA_TREE_ORDER")
@KeySequence("SA_TREE_ORDER_SEQ")
public class SaTreeOrder extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private Long pkId;

    /**
     * 订单编号
     */
    @TableField("ORDER_CODE")
    private String orderCode;

    /**
     * 会员主键
     */
    @TableField("PK_MEMBER")
    private Long pkMember;

    /**
     * 活动基本配置主键
     */
    @TableField("PK_BASE_ID")
    private Long pkBaseId;

    /**
     * 活动规则主键
     */
    @TableField("PK_TREE_RULE")
    private Long pkTreeRule;

    /**
     * 订单金额
     */
    @TableField("ORDER_AMOUNT")
    private BigDecimal orderAmount;

    /**
     * 购买数量
     */
    @TableField("QUANTITY")
    private Integer quantity;

    /**
     * 订单状态  (0=待支付,1=已支付)
     */
    @TableField("ORDER_STATUS")
    private Integer orderStatus;

    /**
     * 支付时间
     */
    @TableField("PAY_TIME")
    private Date payTime;


}
