create table sj_namespace
(
    id          bigint unsigned auto_increment comment '主键'
        primary key,
    name        varchar(64)                            not null comment '名称',
    unique_id   varchar(64)                            not null comment '唯一id',
    description varchar(256) default ''                not null comment '描述',
    deleted     tinyint      default 0                 not null comment '逻辑删除 1、删除',
    create_dt   datetime     default CURRENT_TIMESTAMP not null comment '创建时间',
    update_dt   datetime     default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '修改时间',
    constraint uk_unique_id
        unique (unique_id)
)
    comment '命名空间';

create index idx_name
    on sj_namespace (name);

INSERT INTO ruoyi.sj_namespace (id, name, unique_id, description, deleted, create_dt, update_dt) VALUES (1, 'Development', 'dev', '', 0, '2025-08-23 21:50:37', '2025-08-23 21:50:37');
INSERT INTO ruoyi.sj_namespace (id, name, unique_id, description, deleted, create_dt, update_dt) VALUES (2, 'Production', 'prod', '', 0, '2025-08-23 21:50:37', '2025-08-23 21:50:37');
