多模块重构 11:新增 H2 SQL 脚本的生成

This commit is contained in:
YunaiV
2022-02-02 23:38:18 +08:00
parent 0773a4c4d7
commit 24e083b3ae
11 changed files with 50 additions and 234 deletions

View File

@@ -0,0 +1 @@
DELETE FROM "tool_test_demo";

View File

@@ -0,0 +1,14 @@
CREATE TABLE IF NOT EXISTS "tool_test_demo" (
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"name" varchar(100) NOT NULL,
"status" tinyint NOT NULL,
"type" tinyint NOT NULL,
"category" tinyint NOT NULL,
"remark" varchar(500),
"creator" varchar(64) DEFAULT '''',
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updater" varchar(64) DEFAULT '''',
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
PRIMARY KEY ("id")
) COMMENT '字典类型表';