From 9206f44e10e0b67a8bf68f7d421696b231c26bfa Mon Sep 17 00:00:00 2001 From: lizhengwei <171332584@qq.com> Date: Sat, 14 Mar 2026 22:08:23 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=E7=BB=84=E4=BB=B6=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-site/ruoyi-h5/doc/init.sql | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/ruoyi-site/ruoyi-h5/doc/init.sql b/ruoyi-site/ruoyi-h5/doc/init.sql index f0b55058a..b35611d38 100644 --- a/ruoyi-site/ruoyi-h5/doc/init.sql +++ b/ruoyi-site/ruoyi-h5/doc/init.sql @@ -30,6 +30,34 @@ create index INDEX_KEY create index INDEX_MD5 on file_metadata_info (file_md5); + +create table h5_project +( + id bigint auto_increment comment '主键ID' + primary key, + type varchar(50) not null comment '类型', + title varchar(255) not null comment '标题', + content json not null comment '项目内容(JSON格式)', + content_updated_at bigint null comment '内容更新时间戳', + description varchar(500) null comment '描述', + preview_url varchar(500) null comment '预览图URL', + preview_url_watermark varchar(500) null comment '水印预览图URL', + preview_width int not null comment '预览图宽度', + preview_height int not null comment '预览图高度', + status tinyint(2) default 1 not null comment '状态:1:草稿;2:已发布', + create_time datetime default CURRENT_TIMESTAMP not null comment '创建时间戳', + update_time datetime null on update CURRENT_TIMESTAMP comment '更新时间戳', + deleted tinyint(1) default 0 not null comment '是否删除', + created_by bigint default 0 not null comment '创建人', + td bigint default -1 null comment '租户id,-1表示无租户的概念' +) + comment 'H5项目表' charset = utf8mb4; + +create fulltext index ft_title + on h5_project (title); + + + create table h5_font ( id bigint auto_increment comment '主键ID'