产品管理单元测试完善

This commit is contained in:
gaoqr
2025-10-14 13:34:39 +08:00
parent d0d626753f
commit dadaf09e4a
4 changed files with 468 additions and 5 deletions
@@ -683,4 +683,19 @@ CREATE TABLE IF NOT EXISTS "process_group" (
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
PRIMARY KEY ("id")
) COMMENT '工序组表 process_group';
) COMMENT '工序组表 process_group';
CREATE TABLE IF NOT EXISTS "products" (
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"product_name" varchar(64) NOT NULL,
"status" tinyint DEFAULT 1 NOT NULL,
"software_id" bigint NOT NULL,
"price" decimal(8,2),
"description" varchar,
"creator" varchar DEFAULT '',
"create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updater" varchar DEFAULT '',
"update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
PRIMARY KEY ("id")
) COMMENT '产品表';