package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 疑似粉丝表
 */
@Data
@JsonInclude
@TableName("life_fans")
public class LifeFans {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private String id;

    @TableField("followed_id")
    @ApiModelProperty(value = "关注id ('store'或'user' + '_' + 手机号)")
    private String followedId;

    @TableField("fans_id")
    @ApiModelProperty(value = "粉丝id ('store'或'user' + '_' + 手机号)")
    private String fansId;

    @TableField("fans_user_type")
    @ApiModelProperty(value = "粉丝用户分类：1-用户(life_user) 2-商户(store_user) 3-律师(lawyer_user)")
    private Integer fansUserType;

    @TableField("fans_ref_id")
    @ApiModelProperty(value = "粉丝对应表主键id（与 fans_user_type 对应）")
    private Integer fansRefId;

    @TableField("followed_user_type")
    @ApiModelProperty(value = "被关注方用户分类：1-用户 2-商户 3-律师")
    private Integer followedUserType;

    @TableField("followed_ref_id")
    @ApiModelProperty(value = "被关注方对应表主键id（与 followed_user_type 对应）")
    private Integer followedRefId;

    @TableField("fans_type")
    private String fansType;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField("created_user_id")
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updated_time", fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("updated_user_id")
    private Integer updatedUserId;

}
