云
9 小时以前 5072520172e8f45e3ccb8afc26cf0c8186ba4cdd
yudao-module-mes/src/test/resources/sql/create_tables.sql
@@ -413,7 +413,6 @@
    "inspect_date" timestamp DEFAULT NULL,
    "inspector_user_id" bigint DEFAULT NULL,
    "status" tinyint NOT NULL DEFAULT 0,
    "workflow_status" tinyint NOT NULL DEFAULT 0,
    "remark" varchar(500) DEFAULT '',
    "creator" varchar(64) DEFAULT '',
    "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
@@ -424,15 +423,22 @@
    PRIMARY KEY ("id")
);
CREATE TABLE IF NOT EXISTS "mes_qc_oqc_action" (
-- ----------------------------
-- MES 质检审核人配置
-- ----------------------------
CREATE TABLE IF NOT EXISTS "mes_qc_approver_config" (
    "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
    "oqc_id" bigint NOT NULL,
    "action" varchar(32) NOT NULL,
    "result" tinyint DEFAULT NULL,
    "opinion" varchar(500) DEFAULT NULL,
    "quantities_json" varchar(4000) DEFAULT NULL,
    "operator_id" bigint DEFAULT NULL,
    "qc_type" tinyint NOT NULL,
    "approve_node" tinyint NOT NULL,
    "user_id" bigint NOT NULL,
    "status" tinyint NOT NULL DEFAULT 0,
    "remark" varchar(255) DEFAULT NULL,
    "creator" varchar(64) DEFAULT '',
    "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updater" varchar(64) DEFAULT '',
    "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "deleted" bit NOT NULL DEFAULT FALSE,
    "tenant_id" bigint NOT NULL DEFAULT 0,
    PRIMARY KEY ("id")
);