产品明细单元测试完善

This commit is contained in:
gaoqr
2025-10-20 18:07:30 +08:00
parent 25b26c83dd
commit a3633fc6ef
7 changed files with 345 additions and 128 deletions
@@ -686,16 +686,30 @@ CREATE TABLE IF NOT EXISTS "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,
"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,
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updater" varchar DEFAULT '',
"update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
PRIMARY KEY ("id")
) COMMENT '产品表';
CREATE TABLE IF NOT EXISTS "products_details" (
"id" BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"product_id" BIGINT NOT NULL,
"duration" VARCHAR,
"duration_unit" TINYINT,
"discount" DECIMAL(3),
"creator" VARCHAR DEFAULT '',
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updater" varchar(64) DEFAULT '',
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
PRIMARY KEY ("id")
) COMMENT '产品购买信息表 products_details';