package com.qnfhq.modules.c2c.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * c2c用户和商家关注关系
 *
 * @author yelz 30262728@qq.com
 * @since 1.0.0 2025-11-29
 */
@Data
@TableName("c2c_user_follows")
public class UserFollowsEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
	private Long id;
    /**
     * 关注者ID (粉丝)
     */
	private Long followerId;
    /**
     * 被关注者 ID (博主)
     */
	private Long followingId;
    /**
     * 
     */
	private Date createTime;

    /**
     * 已关注的商家信息
     */
    @TableField(exist = false)
    private C2cMerchantEntity followingInfo;

    /**
     * 关注我的商家信息
     */
    @TableField(exist = false)
    private C2cMerchantEntity followerInfo;
}