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

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.*;

/**
 * 话题 DO
 *
 * @author xindazhou
 */
@TableName("community_topic")
@KeySequence("community_topic_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TopicDO extends BaseDO {

    /**
     * 话题ID
     */
    @TableId
    private Long id;

    /**
     * 话题名称
     */
    private String name;

    /**
     * 话题描述
     */
    private String description;

    /**
     * 帖子数
     */
    private Integer postCount;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态：1-正常，2-禁用
     */
    private Integer status;

}

