package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 栏目明细表
 * </p>
 *
 * @author XKF
 * @since 2025-03-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SITE_COLUMNDETAIL")
@ApiModel(value="SiteColumndetail对象", description="栏目明细表")
@KeySequence(value = "SEQ_SITE_COLUMNCONFIG")
public class SiteColumndetail extends Model<SiteColumndetail> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID(SEQ_SITE_COLUMNDETAIL)")
    @TableId(value = "ID", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "所属栏目")
    @TableField("COLUMNID")
    private Long columnid;

    @ApiModelProperty(value = "用户ID(默认为0， 核心为为机构用户ID)")
    @TableField("USERID")
    private Long userid;

    @ApiModelProperty(value = "标题")
    @TableField("TITLE")
    private String title;

    @ApiModelProperty(value = "封面图片")
    @TableField("COVERIMAGE")
    private String coverimage;

    @ApiModelProperty(value = "作者")
    @TableField("AUTHOR")
    private String author;

    @ApiModelProperty(value = "简介")
    @TableField("BRIEF")
    private String brief;

    @ApiModelProperty(value = "内容")
    @TableField("CONTEXT")
    private String context;

    @ApiModelProperty(value = "状态 - 1:暂存 10:待审核 20:审核通过 30:审核拒绝")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "是否置顶 - 0:不置 1:置顶")
    @TableField("ISTOP")
    private Integer istop;

    @ApiModelProperty(value = "点击数")
    @TableField("HITS")
    private Long hits;

    @ApiModelProperty(value = "发布日期")
    @TableField("PUBLISHDATE")
    private Date publishdate;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREAEDATE")
    private Date creaedate;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATORID")
    private Long creatorid;

    @ApiModelProperty(value = "修改时间")
    @TableField("UPDATEDATE")
    private Date updatedate;

    @ApiModelProperty(value = "操作人")
    @TableField("MODIFIERID")
    private Long modifierid;

    @ApiModelProperty(value = "是否展示 - 0:不展示 1:展示")
    @TableField("ISSHOW")
    private Integer isshow;

    @ApiModelProperty(value = "来源ID")
    @TableField("SRCID")
    private Long srcid;

    @TableField(select = false)
    private String srcname;
    @TableField(select = false)
    private String columnname;
    @TableField(select = false)
    private String creatoruser;
    @TableField(select = false)
    private String modifieruser;
    @TableField(select = false)
    private String publishdate2;
    @TableField(select = false)
    private Integer columntype;

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
