create table ai_model
(
    id          bigint auto_increment comment '主键'
        primary key,
    tenant_id   varchar(255) default '000000'          not null comment '租户id',
    model_name  varchar(255) default ''                not null comment '模型名称',
    network     int          default 0                 not null comment '网络模式',
    company     varchar(255) default ''                not null comment '公司',
    introduce   varchar(255) default ''                not null comment '简介',
    status      int          default 0                 not null comment '0-启用；1-禁用',
    sort        int          default 0                 not null comment '排序权重',
    create_dept varchar(255) default ''                not null comment '创建部门',
    create_by   bigint       default 0                 not null comment '创建人',
    create_time datetime     default CURRENT_TIMESTAMP not null comment '创建时间',
    update_by   bigint       default 0                 not null comment '更新人 id',
    update_time datetime     default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '更新时间',
    remark      text                                   null
)
    comment '模型' collate = utf8mb4_general_ci;

INSERT INTO ruoyi.ai_model (id, tenant_id, model_name, network, company, introduce, status, sort, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (1, '000000', '测试模型', 0, '', '', 0, 0, '', 0, '2025-09-17 10:06:09', 0, '2025-09-17 10:06:09', null);
