package com.czg.market.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import java.io.Serial;

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

/**
 * 全民股东邀请关系 实体类。
 *
 * @author ww
 * @since 2026-01-31
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("mk_distribution_invite")
public class MkDistributionInvite implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 店铺Id
     */
    private Long shopId;
    /**
     * 用户Id
     */
    private Long userId;

    /**
     * 用户Id
     */
    private Long shopUserId;

    /**
     * 邀请人ID mk_distribution_user.id
     */
    private Long parentUserId;

    /**
     * 邀请人上级ID mk_distribution_user.id
     */
    private Long gradeUserId;

    /**
     * 一级分润
     */
    private BigDecimal oneIncome;

    /**
     * 二级分润
     */
    private BigDecimal twoIncome;

    /**
     * 邀请时间
     */
    private LocalDateTime inviteTime;

}
