package com.greenorange.promotion.model.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 java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 课程推广待提成记录
 * @TableName course_promotion_commission_pending
 */
@TableName(value ="course_promotion_commission_pending")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CoursePromotionCommissionPending implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 一级用户
     */
    private Long firstUserId;

    /**
     * 二级用户
     */
    private Long secondUserId;

    /**
     * 课程id
     */
    private Long courseId;

    /**
     * 课程名称
     */
    private String name;

    /**
     * 课程类别
     */
    private String type;

    /**
     * 课程图片
     */
    private String image;

    /**
     * 课程订单id
     */
    private Long orderId;

    /**
     * 下单用户id
     */
    private Long userId;

    /**
     * 一级抽佣比例
     */
    private BigDecimal firstRate;

    /**
     * 二级抽佣比例
     */
    private BigDecimal secondRate;

    /**
     * 订单价格
     */
    private BigDecimal totalAmount;

    /**
     * 提成状态
     */
    private String commissionStatus;

    /**
     * 订单创建时间
     */
    private Date orderCreateTime;

    /**
     * 一级抽成奖励
     */
    private BigDecimal firstReward;

    /**
     * 二级抽成奖励
     */
    private BigDecimal secondReward;

    /**
     * 是否删除
     */
    private Integer isDelete;

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

    /**
     * 更新时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}