package com.competition.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.competition.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 系统配置实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_sys_config")
@Schema(description = "系统配置实体")
public class SysConfig extends BaseEntity {

    @Schema(description = "租户ID")
    @TableField("tenant_id")
    private Long tenantId;

    @Schema(description = "配置键（租户内唯一）")
    @TableField("`key`")
    private String key;

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

    @Schema(description = "描述")
    private String description;
}
