package com.ai.da.mapper.primary.entity;

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

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_affiliate")
public class Affiliate extends BaseEntity{

    private Long accountId;

    // Active（活跃） || Inactive（过期） || Pending（待审批） || Refused(拒绝)
    private String status;

    private Float commissionPercent;

    private Float totalEarnings = 0.00F;

    private Float monthlyEarnings = 0.00F;

    private Float unpaidEarnings = 0.00F;

    // 邀请链接的访问人数，每分钟从redis同步到数据库
    private Long visits = 0L;

    private Boolean approved = false;

    private String link;

    private String promotionMethod;

    private Integer isDeleted;
}
