package com.czg.account.entity;

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

import java.io.Serial;

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

/**
 * 店铺分享记录 实体类。
 *
 * @author zs
 * @since 2025-03-05
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
@Table("tb_shop_share_record")
public class ShopShareRecord implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * tb_shop_share 主键Id
     */
    private Integer shareId;

    /**
     * 店铺Id
     */
    private Integer shopId;

    /**
     * 邀请人id
     */
    private Integer invitedId;

    /**
     * 邀请人名称
     */
    private String invitedName;

    /**
     * 被邀请人Id
     */
    private Integer beInvitedId;

    /**
     * 奖励券获得方式 get/use 领取获得/使用获得
     */
    private String method;

    /**
     * 0 非新用户 1 未领取 2 已领取 3 已使用
     */
    private Integer status;

    /**
     * 生效时间/获得奖励的时间
     */
    private LocalDateTime rewardTime;

    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime updateTime;

}
