package com.wzj.soopin.member.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.domain.model.BaseAudit;

@TableName( "ums_fans")
@Data
@EqualsAndHashCode(callSuper = true)
public class Fans extends BaseAudit {


    @Schema(description ="ID")
    @TableId
    private Long id;

    /**
     * 作家用户id
     */
    @TableField( "vlogger_id")
    private Long vloggerId;




    /**
     * 粉丝用户id
     */
    @Schema(description ="粉丝id")
    private Long fanId;

    /**
     * 粉丝是否是vloger的朋友，如果成为朋友，则本表的双方此字段都需要设置为1，如果有一人取关，则两边都需要设置为0
     */
    @Schema(description ="是否是好友")
    private Integer friendFlag;


    @Schema(description ="是否互相关注")
    private Integer bothFriend;


}
