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 lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * 用户推送信息表 实体类。
 *
 * @author zs
 * @since 2025-03-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table("tb_shop_push_open_id")
public class ShopPushOpenId implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    private Long shopId;

    /**
     * 微信openid
     */
    private String openId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态 1 正常 0 禁用
     */
    private Integer status;

    /**
     * 创建时间
     */
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime updateTime;

    /**
     * 可推送类型 json字符串 耗材推送 conState 商品推送 proState 操作预警 allState
     */
    private Object typeInfo;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 头像
     */
    private String avatar;

}
