package com.czg.market.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 生日有礼记录 实体类。
 *
 * @author zs
 * @since 2025-10-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("mk_birthday_gift_record")
@Accessors(chain = true)
public class MkBirthdayGiftRecord implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 用户id
     */
    private Long userId;
    private Long shopUserId;

    /**
     * 生日
     */
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate birthday;
    /**
     * 创建时间
     */
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    /**
     * 主店id
     */
    private Long mainShopId;

    private String pushStatus;
    private String pushResp;
    private String templateCode;
    private String templateContent;
    private String phone;
    private Long templateId;
    private Integer year;
    private String userType;


}
