mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 05:42:06 +08:00
产品明细单元测试完善
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user