package com.seer.teach.mp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.seer.teach.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 公众号用户表
 * </p>
 *
 * @author Wang
 * @since 2025-08-03 17:00:19
 */
@Getter
@Setter
@TableName("mp_user_subscribe")
@Builder
@Schema(name = "MpUserSubscribeEntity", description = "公众号用户表")
public class MpUserSubscribeEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户")
    @TableField("user_id")
    private Integer userId;

    @Schema(description = "关注状态")
    @TableField("subscribe_status")
    private Integer subscribeStatus;

    @Schema(description = "关注时间")
    @TableField("subscribe_time")
    private LocalDateTime subscribeTime;

    @Schema(description = "取消关注时间")
    @TableField("unsubscribe_time")
    private LocalDateTime unsubscribeTime;

    @Schema(description = "微信公众号ID")
    @TableField("account_id")
    private Long accountId;

    @Schema(description = "微信公众号 appid")
    @TableField("app_id")
    private String appId;

    @Schema(description = "创建人")
    @TableField("create_by")
    private String createBy;

    @Schema(description = "修改人")
    @TableField("update_by")
    private String updateBy;

    @Schema(description = "租户id")
    @TableField("tenant_id")
    private String tenantId;


}
