package com.cool.modules.aiconfig.entity;

import com.cool.core.base.BaseEntity;
import com.cool.core.annotation.ColumnDefine;
import com.mybatisflex.annotation.Table;
import com.tangzc.mybatisflex.autotable.annotation.UniIndex;
import lombok.Getter;
import lombok.Setter;

/**
 * AI模型配置实体类
 */
@Getter
@Setter
@Table(value = "ai_model", comment = "AI模型配置表")
public class AiModelEntity extends BaseEntity<AiModelEntity> {

    @UniIndex
    @ColumnDefine(comment = "模型标识（唯一）", notNull = true)
    private String modelKey;

    @ColumnDefine(comment = "模型名称", notNull = true)
    private String modelName;

    @ColumnDefine(comment = "模型描述")
    private String description;

    @ColumnDefine(comment = "模型类型（如：openai、qwen、zhipu等）", notNull = true)
    private String modelType;

    @ColumnDefine(comment = "状态 0-禁用 1-启用", defaultValue = "1")
    private Integer status;

    @ColumnDefine(comment = "排序号", defaultValue = "0")
    private Integer orderNum;
}
