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.util.Date;

/**
 * <p>
 * 栏目配置表 - 前999预留，序列从1000开始
1. 新闻资讯
 * </p>
 *
 * @author XKF
 * @since 2025-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SITE_COLUMNCONFIG")
@ApiModel(value="SiteColumnconfig对象", description="栏目配置表 - 前999预留，序列从1000开始 1. 新闻资讯")
@KeySequence(value = "SEQ_SITE_COLUMNCONFIG")
public class SiteColumnconfig extends Model<SiteColumnconfig> {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "栏目类型 - 1:行情资讯 10:会员服务 30:关于我们 100:核心企业栏目-百色")
    @TableField("COLUMNTYPE")
    private Integer columntype;

    @ApiModelProperty(value = "栏目名称")
    @TableField("COLUMNNAME")
    private String columnname;

    @ApiModelProperty(value = "排序")
    @TableField("SORT")
    private Integer sort;

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

    @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;

    @TableField(select = false)
    private String modifieruser;
    @TableField(select = false)
    private String creatoruser;

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

}
