package com.ruoyi.ai.domain;

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 com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 返佣记录对象 ai_rebate_record
 *
 * @author shi
 * @date 2025-11-13
 */
@Data
@TableName("ai_rebate_record")
public class AiRebateRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 关联订单号
     */
    @Excel(name = "关联订单号")
    private String orderNo;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    /**
     * 上级ID
     */
    @Excel(name = "上级ID")
    private Long superiorId;

    /**
     * 下级ID
     */
    @Excel(name = "下级ID")
    private Long subordinateId;

    /**
     * 返佣金额
     */
    @Excel(name = "返佣金额")
    private BigDecimal amount;

    /**
     * 上级用户ID
     */
    @TableField(exist = false)
    private String superiorUserId;

    /**
     * 下级用户ID
     */
    @TableField(exist = false)
    private String subordinateUserId;

}
