package com.dora.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 粉丝推广关系与提成实体类
 */
@Data
public class FanPromotionCommission {
    
    /**
     * 主键ID
     */
    private Long id;
    
    /**
     * 推广人ID
     */
    private Long promoterId;
    
    /**
     * 粉丝用户ID
     */
    private Long fanId;
    
    /**
     * 关联的订单ID
     */
    private Long orderId;
    
    /**
     * 粉丝订单金额
     */
    private BigDecimal orderAmount;
    
    /**
     * 提成比例
     */
    private BigDecimal commissionRate;
    
    /**
     * 提成发生时推广人的等级
     */
    private Integer commissionLevel;
    
    /**
     * 推广人实际提成金额
     */
    private BigDecimal commissionAmount;
    
    /**
     * 提成状态 (0待结算/1已结算)
     */
    private Integer status;
    
    /**
     * 提成产生时间
     */
    private LocalDateTime createTime;
    
    /**
     * 结算时间
     */
    private LocalDateTime settledAt;
    
    /**
     * 是否删除
     */
    private Integer isDeleted;
} 