package com.storlead.centre.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统配置项
 * </p>
 *
 * @author chenkq
 * @since 2026-01-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("system_config_item")
@ApiModel(value="SystemConfigItemEntity对象", description="系统配置项")
public class SystemConfigItemEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "item_id", type = IdType.AUTO)
    private Long itemId;

    @ApiModelProperty(value = "配置项名称")
    @TableField("item_name")
    private String itemName;

    @ApiModelProperty(value = "配置键值编码")
    @TableField("item_code")
    private String itemCode;

    @ApiModelProperty(value = "配置项数据类型：0：字符串，1：整数，2：小数，3：金额， 4：时间, 5：日期")
    @TableField("item_data_type")
    private Integer itemDataType;

    @ApiModelProperty(value = "数据格式要求")
    @TableField("item_data_format_desc")
    private String itemDataFormatDesc;

    @ApiModelProperty(value = "数据格式正则脚本")
    @TableField("item_format_value")
    private String itemFormatValue;

    @ApiModelProperty(value = "描述")
    @TableField("item_desc")
    private String itemDesc;


}
