package com.ichangzuo.system.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.ichangzuo.common.base.BaseEntity;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 系统配置 实体
 *
 * @author Theo
 * @since 2024-07-29 11:17:26
 */
@Schema(description = "系统配置")
@TableName("sys_config")
@Data
public class Config extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "配置名称")
    private String configName;

    @Schema(description = "配置键")
    private String configKey;

    @Schema(description = "配置值")
    private String configValue;

    @Schema(description = "描述、备注")
    private String remark;

    @Schema(description = "创建人ID")
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    @Schema(description = "更新人ID")
    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    @TableLogic(value = "0", delval = "1")
    private Integer isDeleted;

}
