package com.xindazhou.business.dal.community.dataobject.follow;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xindazhou.framework.mybatis.core.dataobject.BaseDO;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 关注 DO
 *
 * @author xindazhou
 */
@TableName("community_follow")
@KeySequence("community_follow_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FollowDO extends BaseDO {

    /**
     * 关注ID
     */
    @TableId
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 关注的用户ID
     */
    private Long followUserId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

}

