/*
 Navicat Premium Data Transfer

 Source Server         : 192.168.1.11-kzydba
 Source Server Type    : Oracle
 Source Server Version : 110200
 Source Host           : 192.168.1.11:1521
 Source Schema         : UPCLOUD_BIZ_INBOUND

 Target Server Type    : Oracle
 Target Server Version : 110200
 File Encoding         : 65001

 Date: 14/01/2022 15:33:38
*/


-- ----------------------------
-- Table structure for OMS_ASN_BILL_D
-- ----------------------------
CREATE TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" (
  "LINEID" VARCHAR2(64 BYTE) NOT NULL,
  "SEQNO" VARCHAR2(128 BYTE) NOT NULL,
  "BILLID" VARCHAR2(64 BYTE) NOT NULL,
  "BILLNO" VARCHAR2(128 BYTE) NOT NULL,
  "BRANCHID" VARCHAR2(64 BYTE) NOT NULL,
  "BRANCHCODE" VARCHAR2(128 BYTE) NOT NULL,
  "BRANCHNAME" VARCHAR2(128 BYTE),
  "BRANCHAREAID" VARCHAR2(64 BYTE),
  "BRANCHAREA" VARCHAR2(128 BYTE),
  "CONSIGNORID" VARCHAR2(64 BYTE) NOT NULL,
  "CONSIGNORNAME" VARCHAR2(256 BYTE),
  "ITEMID" VARCHAR2(64 BYTE) NOT NULL,
  "ITEMCODE" VARCHAR2(128 BYTE) NOT NULL,
  "ITEMNAME" VARCHAR2(256 BYTE),
  "MANUFACTURER" VARCHAR2(256 BYTE),
  "PARERNT_ITEMID" VARCHAR2(64 BYTE),
  "CATEGORY_ID" VARCHAR2(64 BYTE),
  "SIZE_CODE" VARCHAR2(32 BYTE),
  "COLOR_CODE" VARCHAR2(32 BYTE),
  "REVISION" VARCHAR2(32 BYTE),
  "PACK_SIZE" NUMBER(20,4),
  "PACK_UNITS" VARCHAR2(64 BYTE),
  "ITEM_PCS" NUMBER(20,4),
  "ITEM_ODD" NUMBER(20,4),
  "ITEM_QTY" NUMBER(20,4),
  "FREE_QTY" NUMBER(20,4),
  "ITEM_WEIGHT" NUMBER(20,4),
  "ITEM_VOLUME" NUMBER(20,4),
  "PRICE" NUMBER(20,4),
  "TNI_PRICE" NUMBER(20,4),
  "AMT" NUMBER(20,4),
  "TNI_AMT" NUMBER(20,4),
  "MACH_TYPE" VARCHAR2(256 BYTE),
  "LOT_NO" VARCHAR2(128 BYTE),
  "BATCH_NO" VARCHAR2(128 BYTE),
  "PDATE_FROM" DATE,
  "VALID_UNTIL" DATE,
  "APPROVAL_NUMBER" VARCHAR2(512 BYTE),
  "PRODUCTION_PLACE" VARCHAR2(512 BYTE),
  "LINE_REMARK" VARCHAR2(512 BYTE),
  "CLOSED_REASON" VARCHAR2(256 BYTE),
  "REJECT_QTY" NUMBER(20,4),
  "RT_VENDORID" VARCHAR2(64 BYTE),
  "RTREASON" VARCHAR2(64 BYTE),
  "PAPERNO" VARCHAR2(64 BYTE),
  "EDITION" VARCHAR2(32 BYTE),
  "STATUS" VARCHAR2(64 BYTE) NOT NULL,
  "ATTR_STR1" VARCHAR2(256 BYTE),
  "ATTR_STR2" VARCHAR2(256 BYTE),
  "ATTR_STR3" VARCHAR2(256 BYTE),
  "ATTR_STR4" VARCHAR2(256 BYTE),
  "ATTR_STR5" VARCHAR2(256 BYTE),
  "ATTR_STR6" VARCHAR2(256 BYTE),
  "ATTR_STR7" VARCHAR2(256 BYTE),
  "ATTR_STR8" VARCHAR2(256 BYTE),
  "ATTR_STR9" VARCHAR2(256 BYTE),
  "ATTR_STR10" VARCHAR2(256 BYTE),
  "ATTR_NUM1" NUMBER,
  "ATTR_NUM2" NUMBER,
  "ATTR_NUM3" NUMBER,
  "ATTR_NUM4" NUMBER,
  "ATTR_NUM5" NUMBER,
  "ATTR_DTE1" DATE,
  "ATTR_DTE2" DATE,
  "ATTR_DTE3" DATE,
  "ATTR_DTE4" DATE,
  "ATTR_DTE5" DATE,
  "CREATEBY" VARCHAR2(64 BYTE) NOT NULL,
  "CREATEDATE" DATE NOT NULL,
  "LASTMODIFYBY" VARCHAR2(64 BYTE),
  "LASTMODIFYDATE" DATE,
  "P_ENTERPRISEID" VARCHAR2(128 BYTE),
  "P_ENTERPRISENAME" VARCHAR2(128 BYTE),
  "CONSIGNORCODE" VARCHAR2(128 BYTE),
  "BRANCHAREACODE" VARCHAR2(32 BYTE),
  "TYPE_ID" VARCHAR2(32 BYTE),
  "ITEM_ASSISTANT_CODE" VARCHAR2(128 BYTE),
  "PAPER_NO" VARCHAR2(128 BYTE),
  "TYPE_NAME" VARCHAR2(64 BYTE),
  "REMARK" VARCHAR2(255 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
ENABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."LINEID" IS 'ASN单明细表ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."SEQNO" IS '明细行号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."BILLID" IS 'ASN单表ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."BILLNO" IS 'ASN单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."BRANCHID" IS '入库仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."BRANCHCODE" IS '入库仓库编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."BRANCHNAME" IS '入库仓库名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."BRANCHAREAID" IS '入库仓库库区ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."BRANCHAREA" IS '入库仓库库区';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."CONSIGNORID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."CONSIGNORNAME" IS '货主名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ITEMID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ITEMCODE" IS '商品编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ITEMNAME" IS '商品名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."MANUFACTURER" IS '生产厂家';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."PARERNT_ITEMID" IS '父商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."CATEGORY_ID" IS '商品类别ID(商品大类)--商品大类表';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."SIZE_CODE" IS '尺寸';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."COLOR_CODE" IS '颜色';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."REVISION" IS '版本';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."PACK_SIZE" IS '包装数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."PACK_UNITS" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ITEM_PCS" IS '件数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ITEM_ODD" IS '零数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ITEM_QTY" IS '数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."FREE_QTY" IS '赠品数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ITEM_WEIGHT" IS '重量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ITEM_VOLUME" IS '体积';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."PRICE" IS '含税单价';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."TNI_PRICE" IS '未税单价';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."AMT" IS '含税金额';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."TNI_AMT" IS '未税金额';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."MACH_TYPE" IS '加工类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."LOT_NO" IS '批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."BATCH_NO" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."PDATE_FROM" IS '生产日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."VALID_UNTIL" IS '有效期至';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."APPROVAL_NUMBER" IS '批准文号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."PRODUCTION_PLACE" IS '产地';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."LINE_REMARK" IS '行备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."CLOSED_REASON" IS '作废原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."REJECT_QTY" IS '拒收数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."RT_VENDORID" IS '退货厂商';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."RTREASON" IS '退货原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."PAPERNO" IS '备案凭证号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."EDITION" IS '商品印次';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."STATUS" IS '状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_STR1" IS '字符扩展属性1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_STR2" IS '字符扩展属性2(显示生产日期)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_STR3" IS '字符扩展属性3(显示有效期至)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_STR4" IS '字符扩展属性4';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_STR5" IS '字符扩展属性5';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_STR6" IS '字符扩展属性6';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_STR7" IS '字符扩展属性7';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_STR8" IS '字符扩展属性8';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_STR9" IS '字符扩展属性9';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_STR10" IS '字符扩展属性10';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_NUM1" IS '数字扩展属性1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_NUM2" IS '数字扩展属性2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_NUM3" IS '数字扩展属性3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_NUM4" IS '数字扩展属性4';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_NUM5" IS '数字扩展属性5';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_DTE1" IS '日期属性扩展1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_DTE2" IS '日期属性扩展2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_DTE3" IS '日期属性扩展3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_DTE4" IS '日期属性扩展4';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ATTR_DTE5" IS '日期属性扩展5';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."CREATEBY" IS '录入员';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."CREATEDATE" IS '录入时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."LASTMODIFYBY" IS '修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."LASTMODIFYDATE" IS '修改时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."P_ENTERPRISEID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."P_ENTERPRISENAME" IS '企业名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."CONSIGNORCODE" IS '货主编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."BRANCHAREACODE" IS '入库仓库库区编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."TYPE_ID" IS '商品大类ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."ITEM_ASSISTANT_CODE" IS '商品的助记码（OMS未下发，WMS查询时使用）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D"."TYPE_NAME" IS '商品大类名称';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" IS 'OMS ASN单明细表 ';

-- ----------------------------
-- Table structure for OMS_ASN_BILL_H
-- ----------------------------
CREATE TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H" (
  "BILLID" VARCHAR2(64 BYTE) NOT NULL,
  "BILLNO" VARCHAR2(128 BYTE) NOT NULL,
  "BILLTYPE" VARCHAR2(64 BYTE) NOT NULL,
  "REF_BILLTYPE" VARCHAR2(64 BYTE),
  "REF_BILLID" VARCHAR2(64 BYTE),
  "REF_BILLNO" VARCHAR2(128 BYTE),
  "SHIPPER_TYPE" VARCHAR2(64 BYTE) NOT NULL,
  "SHIPPERID" VARCHAR2(64 BYTE) NOT NULL,
  "SHIPPERNAME" VARCHAR2(256 BYTE),
  "SHIPMENT_COUNTRY_NO" VARCHAR2(64 BYTE),
  "SHIPMENT_COUNTRY_NAME" VARCHAR2(128 BYTE),
  "SHIPMENT_PROVINCE_NO" VARCHAR2(64 BYTE),
  "SHIPMENT_PROVINCE_NAME" VARCHAR2(128 BYTE),
  "SHIPMENT_CITY_NO" VARCHAR2(64 BYTE),
  "SHIPMENT_CITY_NAME" VARCHAR2(128 BYTE),
  "SHIPMENT_DISTRICT_NO" VARCHAR2(64 BYTE),
  "SHIPMENT_DISTRICT_NAME" VARCHAR2(128 BYTE),
  "SHIPMENT_TOWN_NO" VARCHAR2(64 BYTE),
  "SHIPMENT_TOWN_NAME" VARCHAR2(128 BYTE),
  "SHIPMENT_COMMUNITY_NO" VARCHAR2(64 BYTE),
  "SHIPMENT_COMMUNITY_NAME" VARCHAR2(128 BYTE),
  "SHIPMENT_ADDRESS" VARCHAR2(512 BYTE),
  "CONSIGNORID" VARCHAR2(64 BYTE) NOT NULL,
  "CONSIGNORNAME" VARCHAR2(256 BYTE),
  "CONSIGNOR_BILLNO" VARCHAR2(128 BYTE),
  "BRANCHID" VARCHAR2(64 BYTE) NOT NULL,
  "BRANCHCODE" VARCHAR2(128 BYTE),
  "BRANCHNAME" VARCHAR2(128 BYTE),
  "BRANCHAREAID" VARCHAR2(64 BYTE),
  "BRANCHAREA" VARCHAR2(128 BYTE),
  "BRANCH_ADDRESS" VARCHAR2(512 BYTE),
  "CATEGORY_ID" VARCHAR2(64 BYTE),
  "SHIP_TERM" VARCHAR2(64 BYTE),
  "ARRIVAL_MODE" VARCHAR2(64 BYTE),
  "PRIORITY_LEVEL" VARCHAR2(64 BYTE),
  "DELIVERER_CONTACT_TEL" VARCHAR2(128 BYTE),
  "SHIP_LINE_ID" VARCHAR2(64 BYTE),
  "CARRIER_ID" VARCHAR2(64 BYTE),
  "CARRIER_NAME" VARCHAR2(256 BYTE),
  "BUYER_NAME" VARCHAR2(128 BYTE),
  "BUYER_TEL" VARCHAR2(64 BYTE),
  "STATUS" VARCHAR2(64 BYTE) NOT NULL,
  "BILL_DATE" DATE,
  "ATTAIN_DATE" DATE,
  "EXAMINE_STATE" VARCHAR2(64 BYTE),
  "TOT_PCS" NUMBER(20,7),
  "TOT_QTY" NUMBER(20,7),
  "TOT_WEIGHT" NUMBER(20,7),
  "TOT_VOLUME" NUMBER(20,7),
  "TOTNETAMT" NUMBER(20,7),
  "TOTAMT" NUMBER(20,7),
  "CLOSED_REASON" VARCHAR2(256 BYTE),
  "RT_REASON" VARCHAR2(128 BYTE),
  "REMARK" VARCHAR2(512 BYTE),
  "ATTR_STR1" VARCHAR2(256 BYTE),
  "ATTR_STR2" VARCHAR2(256 BYTE),
  "ATTR_STR3" VARCHAR2(256 BYTE),
  "ATTR_STR4" VARCHAR2(256 BYTE),
  "ATTR_STR5" VARCHAR2(256 BYTE),
  "ATTR_STR6" VARCHAR2(256 BYTE),
  "ATTR_STR7" VARCHAR2(256 BYTE),
  "ATTR_STR8" VARCHAR2(256 BYTE),
  "ATTR_STR9" VARCHAR2(256 BYTE),
  "ATTR_STR10" VARCHAR2(256 BYTE),
  "ATTR_NUM1" NUMBER(20,7),
  "ATTR_NUM2" NUMBER(20,7),
  "ATTR_NUM3" NUMBER(20,7),
  "ATTR_NUM4" NUMBER(20,7),
  "ATTR_NUM5" NUMBER(20,7),
  "ATTR_DTE1" DATE,
  "ATTR_DTE2" DATE,
  "ATTR_DTE3" DATE,
  "ATTR_DTE4" DATE,
  "ATTR_DTE5" DATE,
  "CREATEBY" VARCHAR2(64 BYTE) NOT NULL,
  "CREATEDATE" DATE DEFAULT sysdate  NOT NULL,
  "LASTMODIFYBY" VARCHAR2(64 BYTE),
  "LASTMODIFYDATE" DATE,
  "P_ENTERPRISEID" VARCHAR2(128 BYTE),
  "P_ENTERPRISENAME" VARCHAR2(128 BYTE),
  "SHIPPERCODE" VARCHAR2(32 BYTE),
  "CONSIGNORCODE" VARCHAR2(32 BYTE),
  "BRANCHAREACODE" VARCHAR2(32 BYTE),
  "CARRIERCODE" VARCHAR2(32 BYTE),
  "BUYER_ID" VARCHAR2(32 BYTE),
  "PURORG_CODE" VARCHAR2(32 BYTE),
  "PURORG_ID" VARCHAR2(32 BYTE),
  "PURORG_NAME" VARCHAR2(64 BYTE),
  "AUDITTIME" DATE,
  "ENQUIRYSALESMAN" VARCHAR2(64 BYTE),
  "ENQUIRYDEPARTMENT" VARCHAR2(64 BYTE),
  "AGENT" VARCHAR2(64 BYTE),
  "EXPIRATIONDATE" DATE,
  "PAYMENTDAYTYPE" VARCHAR2(32 BYTE),
  "REFUNDTYPE" VARCHAR2(32 BYTE),
  "ISDISPATCH" VARCHAR2(32 BYTE),
  "PAYMENTTYPE" VARCHAR2(64 BYTE),
  "TOTALFEE" NUMBER(20,7),
  "ISUNCHECPRODUCTS" VARCHAR2(32 BYTE),
  "DELIVERER_CONTACT" VARCHAR2(64 BYTE),
  "SHIPPER_KEYWORDS" VARCHAR2(256 BYTE),
  "VENDORID" VARCHAR2(64 BYTE),
  "VENDORNAME" VARCHAR2(128 BYTE),
  "EXC_REMARKS" VARCHAR2(128 BYTE),
  "EXC_RESULTS" VARCHAR2(32 BYTE),
  "SHIPPING_TYPE" VARCHAR2(20 BYTE),
  "TRANSPORT_UNIT" VARCHAR2(64 BYTE),
  "SHIPMENT_DATE" DATE,
  "SHIPMENT_PLACE" VARCHAR2(128 BYTE),
  "TRANSIT_TIME" VARCHAR2(4 BYTE),
  "CARRIER_UNIT" VARCHAR2(64 BYTE),
  "CAOZY" VARCHAR2(64 BYTE),
  "ATTR_STR11" VARCHAR2(256 BYTE),
  "ATTR_STR12" VARCHAR2(256 BYTE),
  "ATTR_STR13" VARCHAR2(256 BYTE),
  "ATTR_STR14" VARCHAR2(256 BYTE),
  "ATTR_STR15" VARCHAR2(256 BYTE),
  "CON_CHANGE_STATUS" VARCHAR2(2 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BILLID" IS 'ASN单表ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BILLNO" IS 'ASN单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BILLTYPE" IS 'ASN单类型(参考字典类型: oms_asn_bill_type)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."REF_BILLTYPE" IS 'ASN单来源单据类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."REF_BILLID" IS '来源单据ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."REF_BILLNO" IS '来源单据号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPPER_TYPE" IS '发货单位类型1 客户
2 供应商
3 发货仓库';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPPERID" IS '发货单位ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPPERNAME" IS '发货单位名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_COUNTRY_NO" IS '发货单位国编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_COUNTRY_NAME" IS '发货单位国';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_PROVINCE_NO" IS '发货单位省编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_PROVINCE_NAME" IS '发货单位省';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_CITY_NO" IS '发货单位市编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_CITY_NAME" IS '发货单位市';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_DISTRICT_NO" IS '发货单位区/县编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_DISTRICT_NAME" IS '发货单位区/县';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_TOWN_NO" IS '发货单位街道/乡镇编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_TOWN_NAME" IS '发货单位街道/乡镇';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_COMMUNITY_NO" IS '发货单位社区/村编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_COMMUNITY_NAME" IS '发货单位社区/村';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_ADDRESS" IS '发货单位详细地址';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CONSIGNORID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CONSIGNORNAME" IS '货主名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CONSIGNOR_BILLNO" IS '货主单据号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BRANCHID" IS '入库仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BRANCHCODE" IS '入库仓库编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BRANCHNAME" IS '入库仓库名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BRANCHAREAID" IS '入库仓库库区ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BRANCHAREA" IS '入库仓库库区';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BRANCH_ADDRESS" IS '入库仓库详细地址';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CATEGORY_ID" IS '商品类别ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIP_TERM" IS '运输条件';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ARRIVAL_MODE" IS '到货方式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."PRIORITY_LEVEL" IS '订单紧急等级';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."DELIVERER_CONTACT_TEL" IS '送货人联系方式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIP_LINE_ID" IS '运输路线ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CARRIER_ID" IS '承运商ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CARRIER_NAME" IS '承运商名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BUYER_NAME" IS '采购员名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BUYER_TEL" IS '采购员联系电话';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."STATUS" IS '状态(20为wms需操作的类型)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BILL_DATE" IS '制单日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTAIN_DATE" IS '预定到货日';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."EXAMINE_STATE" IS '审核状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."TOT_PCS" IS '总件数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."TOT_QTY" IS '总数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."TOT_WEIGHT" IS '总重量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."TOT_VOLUME" IS '总体积';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."TOTNETAMT" IS '总未税金额';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."TOTAMT" IS '总含税金额';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CLOSED_REASON" IS '作废原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."RT_REASON" IS '退货原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."REMARK" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR1" IS '字符扩展属性1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR2" IS '字符扩展属性2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR3" IS '字符扩展属性3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR4" IS '字符扩展属性4';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR5" IS '字符扩展属性5';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR6" IS '字符扩展属性6';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR7" IS '字符扩展属性7';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR8" IS '字符扩展属性8(单据失效日期)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR9" IS '字符扩展属性9';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR10" IS '字符扩展属性10';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_NUM1" IS '数字扩展属性1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_NUM2" IS '数字扩展属性2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_NUM3" IS '数字扩展属性3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_NUM4" IS '数字扩展属性4';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_NUM5" IS '数字扩展属性5';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_DTE1" IS '日期属性扩展1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_DTE2" IS '日期属性扩展2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_DTE3" IS '日期属性扩展3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_DTE4" IS '日期属性扩展4';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_DTE5" IS '日期属性扩展5';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CREATEBY" IS '录入员';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CREATEDATE" IS '录入时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."LASTMODIFYBY" IS '修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."LASTMODIFYDATE" IS '修改时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."P_ENTERPRISEID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."P_ENTERPRISENAME" IS '企业名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPPERCODE" IS '发货单位类型=客户，客户编码
发货单位类型=供应商，供应商编码
发货单位类型=发货仓库，仓库编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CONSIGNORCODE" IS '货主编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BRANCHAREACODE" IS '入库仓库库区编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CARRIERCODE" IS '承运商编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."BUYER_ID" IS '采购员/业务员ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."PURORG_CODE" IS '业务部门编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."PURORG_ID" IS '业务部门ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."PURORG_NAME" IS '业务部门名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."AUDITTIME" IS '审核时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ENQUIRYSALESMAN" IS '要货业务员ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ENQUIRYDEPARTMENT" IS '要货部门ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."AGENT" IS '代理商';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."EXPIRATIONDATE" IS '单据拦截截止日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."PAYMENTDAYTYPE" IS '账期类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."REFUNDTYPE" IS '退货类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ISDISPATCH" IS '是否派单';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."PAYMENTTYPE" IS '销退付费方式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."TOTALFEE" IS '销退运费';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ISUNCHECPRODUCTS" IS '是否待检品入库';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."DELIVERER_CONTACT" IS '联系人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPPER_KEYWORDS" IS '发货单位助记码（WMS查询时使用，WMS方新增加的字段）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPPING_TYPE" IS '运输方式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."TRANSPORT_UNIT" IS '运输单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_DATE" IS '起运时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."SHIPMENT_PLACE" IS '发运地点';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."TRANSIT_TIME" IS '在途时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CARRIER_UNIT" IS '承运方';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CAOZY" IS '操作员';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR11" IS '字符扩展属性11';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR12" IS '字符扩展属性12';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR13" IS '字符扩展属性13';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR14" IS '字符扩展属性14';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."ATTR_STR15" IS '字符扩展属性15';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H"."CON_CHANGE_STATUS" IS '0：非货主转换单据  1：待货主转换单据 2：已生成货主转换单据 3：已下发货主转换单据';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H" IS 'OMS ASN单表 ';

-- ----------------------------
-- Table structure for WMS_IN_EXCEPTION_HEADERS
-- ----------------------------
CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" (
  "EXCEPTION_HEADER_ID" VARCHAR2(30 BYTE) NOT NULL,
  "RCV_HEADER_ID" VARCHAR2(30 BYTE) NOT NULL,
  "AUTO_BILL_NUM" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(30 BYTE),
  "ASN_HEADER_ID" VARCHAR2(30 BYTE),
  "ENTERPRISE_ID" VARCHAR2(32 BYTE),
  "LINE_NUM" NUMBER(10,0),
  "MTL_OWNER_ID" VARCHAR2(30 BYTE) NOT NULL,
  "WAREHOUSE_ID" VARCHAR2(30 BYTE) NOT NULL,
  "EXECUTOR_USER" VARCHAR2(60 BYTE),
  "EXECUTOR_DATE" DATE NOT NULL,
  "NODE_TYPE" CHAR(10 BYTE),
  "CREATOR" VARCHAR2(30 BYTE),
  "CREATOR_NAME" VARCHAR2(30 BYTE),
  "GMT_CREATE" DATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "CUSTOM_BILL_NUM" VARCHAR2(60 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE,
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."EXCEPTION_HEADER_ID" IS '错误单头ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."AUTO_BILL_NUM" IS '单据流水好';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."SRC_HEADER_ID" IS '来源单头ID(PO/XT/YC)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."ASN_HEADER_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."LINE_NUM" IS '行号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."MTL_OWNER_ID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."EXECUTOR_USER" IS '操作时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."NODE_TYPE" IS '错误发现节点（收货/验收/质检/上架）pass';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."CREATOR" IS '创建人id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."CREATOR_NAME" IS '创建人名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."MODIFIER" IS '修改者id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."CUSTOM_BILL_NUM" IS '手工单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."MODIFIER_NAME" IS '修改者名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."GMT_MODIFIED" IS '最新更新时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" IS '收货异常单头
来源于异常任务池WMS_IN_TASK_EXCEPTION_DETAIL';

-- ----------------------------
-- Table structure for WMS_IN_EXCEPTION_LINES
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES" (
  "EXCEPTION_LINE_ID" VARCHAR2(30 BYTE) DEFAULT NULL NOT NULL,
  "EXCEPTION_HEADER_ID" VARCHAR2(30 BYTE),
  "RCV_LINE_ID" VARCHAR2(30 BYTE),
  "RCV_HEADER_ID" VARCHAR2(30 BYTE),
  "SRC_HEADER_ID" VARCHAR2(30 BYTE),
  "SRC_LINE_ID" VARCHAR2(30 BYTE),
  "ASN_HEADER_ID" VARCHAR2(30 BYTE),
  "ASN_LINE_ID" VARCHAR2(30 BYTE),
  "ENTERPRISE_ID" VARCHAR2(32 BYTE),
  "LINE_NUM" NUMBER(10,0),
  "MTL_OWNER_ID" VARCHAR2(30 BYTE),
  "WAREHOUSE_ID" VARCHAR2(30 BYTE),
  "ITEM_ID" VARCHAR2(30 BYTE),
  "CONTAINER_CODE" VARCHAR2(30 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(30 BYTE),
  "BATCH_ID_OLD" VARCHAR2(50 BYTE),
  "BATCH_NUM_OLD" VARCHAR2(50 BYTE),
  "PRODUCTION_DATE_OLD" DATE,
  "EXPIRED_DATE_OLD" DATE,
  "VENDOR_BATCH_NUM_OLD" VARCHAR2(30 BYTE),
  "MANUFACTURER_LOT_NUM_OLD" VARCHAR2(30 BYTE),
  "BATCH_ID_NEW" VARCHAR2(50 BYTE),
  "BATCH_NUM_NEW" VARCHAR2(50 BYTE),
  "PRODUCTION_DATE_NEW" DATE,
  "EXPIRED_DATE_NEW" DATE,
  "VENDOR_BATCH_NUM_NEW" VARCHAR2(30 BYTE),
  "MANUFACTURER_LOT_NUM_NEW" VARCHAR2(30 BYTE),
  "QTY_OLD" NUMBER,
  "QTY_NEW" NUMBER,
  "UOM" VARCHAR2(30 BYTE),
  "UOM_TYPE" VARCHAR2(30 BYTE),
  "CONVERSION_RATE" NUMBER(14,4),
  "PIECE_QTY_OLD" NUMBER,
  "PIECE_QTY_NEW" NUMBER,
  "EXECUTOR_USER" VARCHAR2(60 BYTE),
  "EXECUTOR_DATE" DATE,
  "NODE_TYPE" VARCHAR2(10 BYTE),
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "TASK_EXCEPTION_ID" VARCHAR2(32 BYTE),
  "CREATOR" VARCHAR2(42 BYTE),
  "CREATOR_NAME" VARCHAR2(42 BYTE),
  "GMT_CREATE" DATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(42 BYTE),
  "GMT_MODIFIED" DATE,
  "STATUS" CHAR(1 BYTE),
  "NODE_TASK_ID" VARCHAR2(32 BYTE),
  "SHOW_PRODUCTION_DATE_NEW" VARCHAR2(64 BYTE),
  "SHOW_EXPIRED_DATE_NEW" VARCHAR2(64 BYTE),
  "SHOW_PRODUCTION_DATE_OLD" VARCHAR2(64 BYTE),
  "SHOW_EXPIRED_DATE_OLD" VARCHAR2(64 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."EXCEPTION_LINE_ID" IS '错误行ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."EXCEPTION_HEADER_ID" IS '错误单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."RCV_LINE_ID" IS '收货单行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."SRC_HEADER_ID" IS '来源单头ID(PO/XT/YC)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."SRC_LINE_ID" IS '来源单ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."ASN_HEADER_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."ASN_LINE_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."ENTERPRISE_ID" IS '企业id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."LINE_NUM" IS '行号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."MTL_OWNER_ID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."CONTAINER_CODE" IS '容器编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."GOODS_CASE_CODE" IS '货格编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."BATCH_ID_OLD" IS '旧批号ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."BATCH_NUM_OLD" IS '旧批号编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."PRODUCTION_DATE_OLD" IS '旧生产日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."EXPIRED_DATE_OLD" IS '旧有效期至';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."VENDOR_BATCH_NUM_OLD" IS '旧供应商批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."MANUFACTURER_LOT_NUM_OLD" IS '旧生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."BATCH_ID_NEW" IS '新批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."BATCH_NUM_NEW" IS '新批号编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."PRODUCTION_DATE_NEW" IS '新生产日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."EXPIRED_DATE_NEW" IS '新有效期至';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."VENDOR_BATCH_NUM_NEW" IS '新供应商批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."MANUFACTURER_LOT_NUM_NEW" IS '新生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."QTY_OLD" IS '旧数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."QTY_NEW" IS '新数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."UOM_TYPE" IS '包装单位类型(2019/2020)新老包装';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."PIECE_QTY_OLD" IS '旧数量(最小单位)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."PIECE_QTY_NEW" IS '新数量（最小单位）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."EXECUTOR_USER" IS '执行者（异常处理人）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."EXECUTOR_DATE" IS '操作时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."NODE_TYPE" IS '错误发现节点（10收货/20质检/30复检/40上架）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."TASK_EXCEPTION_ID" IS '来源任务id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."STATUS" IS '状态(0已处理1未处理-默认)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."NODE_TASK_ID" IS '错误发现节点的任务id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."SHOW_PRODUCTION_DATE_NEW" IS '新显示生产日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."SHOW_EXPIRED_DATE_NEW" IS '新显示有效期至';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."SHOW_PRODUCTION_DATE_OLD" IS '老显示生产日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES"."SHOW_EXPIRED_DATE_OLD" IS '老显示有效期至';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES" IS '收货异常行ID';

-- ----------------------------
-- Table structure for WMS_IN_EXCEPTION_LOG
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG" (
  "EXCEPTION_LOG_ID" VARCHAR2(30 BYTE) NOT NULL,
  "EXCEPTION_LINE_ID" VARCHAR2(30 BYTE) NOT NULL,
  "EXCEPTION_HEADER_ID" VARCHAR2(30 BYTE) NOT NULL,
  "RCV_LINE_ID" VARCHAR2(30 BYTE) NOT NULL,
  "RCV_HEADER_ID" VARCHAR2(30 BYTE) NOT NULL,
  "SRC_HEADER_ID" VARCHAR2(30 BYTE),
  "SRC_LINE_ID" VARCHAR2(30 BYTE),
  "ASN_HEADER_ID" VARCHAR2(30 BYTE),
  "ASN_LINE_ID" VARCHAR2(30 BYTE),
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "LINE_NUM" NUMBER(10,0),
  "MTL_OWNER_ID" VARCHAR2(30 BYTE) NOT NULL,
  "WAREHOUSE_ID" VARCHAR2(30 BYTE) NOT NULL,
  "ITEM_ID" VARCHAR2(30 BYTE) NOT NULL,
  "CONTAINER_CODE" VARCHAR2(30 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(30 BYTE),
  "BATCH_ID_OLD" VARCHAR2(50 BYTE),
  "BATCH_NUM_OLD" VARCHAR2(50 BYTE),
  "PRODUCTION_DATE_OLD" DATE,
  "EXPIRED_DATE_OLD" DATE,
  "VENDOR_BATCH_NUM_OLD" VARCHAR2(30 BYTE),
  "MANUFACTURER_LOT_NUM_OLD" VARCHAR2(30 BYTE),
  "BATCH_ID_NEW" VARCHAR2(50 BYTE),
  "BATCH_NUM_NEW" VARCHAR2(50 BYTE),
  "PRODUCTION_DATE_NEW" DATE,
  "EXPIRED_DATE_NEW" DATE,
  "VENDOR_BATCH_NUM_NEW" VARCHAR2(30 BYTE),
  "MANUFACTURER_LOT_NUM_NEW" VARCHAR2(30 BYTE),
  "QTY_OLD" NUMBER,
  "QTY_NEW" NUMBER,
  "UOM" VARCHAR2(30 BYTE) NOT NULL,
  "UOM_TYPE" VARCHAR2(30 BYTE),
  "CONVERSION_RATE" NUMBER(14,4) NOT NULL,
  "PIECE_QTY_OLD" NUMBER,
  "PIECE_QTY_NEW" NUMBER,
  "EXECUTOR_USER" VARCHAR2(60 BYTE),
  "EXECUTOR_DATE" DATE,
  "NODE_TYPE" VARCHAR2(10 BYTE),
  "CREATOR" VARCHAR2(30 BYTE),
  "CREATOR_NAME" VARCHAR2(30 BYTE),
  "GMT_CREATE" DATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE,
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "STATUS" CHAR(1 BYTE),
  "NODE_TASK_ID" VARCHAR2(32 BYTE),
  "SHOW_PRODUCTION_DATE_NEW" VARCHAR2(64 BYTE),
  "SHOW_EXPIRED_DATE_NEW" VARCHAR2(64 BYTE),
  "SHOW_PRODUCTION_DATE_OLD" VARCHAR2(64 BYTE),
  "SHOW_EXPIRED_DATE_OLD" VARCHAR2(64 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."EXCEPTION_LOG_ID" IS '错误行日志ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."EXCEPTION_LINE_ID" IS '错误行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."EXCEPTION_HEADER_ID" IS '错误单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."RCV_LINE_ID" IS '行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."RCV_HEADER_ID" IS '头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."SRC_HEADER_ID" IS '来源单头ID(PO/XT/YC)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."SRC_LINE_ID" IS '来源单ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."ASN_HEADER_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."ASN_LINE_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."ENTERPRISE_ID" IS '企业id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."LINE_NUM" IS '行号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."MTL_OWNER_ID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."CONTAINER_CODE" IS '容器编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."GOODS_CASE_CODE" IS '货格编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."BATCH_ID_OLD" IS '旧批号ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."BATCH_NUM_OLD" IS '旧批号编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."PRODUCTION_DATE_OLD" IS '旧生产日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."EXPIRED_DATE_OLD" IS '旧有效期至';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."VENDOR_BATCH_NUM_OLD" IS '旧供应商批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."MANUFACTURER_LOT_NUM_OLD" IS '旧生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."BATCH_ID_NEW" IS '新批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."BATCH_NUM_NEW" IS '新批号编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."PRODUCTION_DATE_NEW" IS '新生产日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."EXPIRED_DATE_NEW" IS '新有效期至';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."VENDOR_BATCH_NUM_NEW" IS '新供应商批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."MANUFACTURER_LOT_NUM_NEW" IS '新生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."QTY_OLD" IS '旧数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."QTY_NEW" IS '新数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."UOM_TYPE" IS '包装单位类型(2019/2020)新老包装';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."PIECE_QTY_OLD" IS '旧数量(最小单位)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."PIECE_QTY_NEW" IS '新数量（最小单位）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."EXECUTOR_USER" IS '执行者（异常处理人）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."EXECUTOR_DATE" IS '操作时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."NODE_TYPE" IS '错误发现节点（10收货/20质检/30复检/40上架）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."CREATOR_NAME" IS '创建人名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."MODIFIER" IS '修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."MODIFIER_NAME" IS '修改者名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."GMT_MODIFIED" IS '最新修改时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."STATUS" IS '状态(是否处理0否1是 默认0)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."NODE_TASK_ID" IS '错误发现节点的任务id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."SHOW_PRODUCTION_DATE_NEW" IS '新显示生产日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."SHOW_EXPIRED_DATE_NEW" IS '新显示有效期至';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."SHOW_PRODUCTION_DATE_OLD" IS '老显示生产日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG"."SHOW_EXPIRED_DATE_OLD" IS '老显示有效期至
';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG" IS '收货异常日志';

-- ----------------------------
-- Table structure for WMS_IN_INTERFACE_RQC_BILL
-- ----------------------------
CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" (
  "INTERFACE_RQC_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "MTL_OWNER_ID" VARCHAR2(32 BYTE) NOT NULL,
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_LINE_ID" VARCHAR2(32 BYTE),
  "LOCATOR_NUM" CHAR(10 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE) NOT NULL,
  "QTY" NUMBER(30,4),
  "CHECK_QTY" NUMBER(30,4),
  "UOM" VARCHAR2(32 BYTE) NOT NULL,
  "CONVERSION_RATE" NUMBER(14,4) NOT NULL,
  "BATCH_ID" VARCHAR2(32 BYTE),
  "PIECE_QTY" NUMBER(30,4) NOT NULL,
  "CHECK_PIECE_QTY" NUMBER(30,4) NOT NULL,
  "BATCH_NUM" VARCHAR2(32 BYTE),
  "VENDOR_BATCH_NUM" VARCHAR2(32 BYTE),
  "MANUFACTURER_LOT_NUM" VARCHAR2(30 BYTE),
  "ACTIVE_FLAG" CHAR(1 BYTE) NOT NULL,
  "STATUS" VARCHAR2(10 BYTE),
  "SEGMENT1" VARCHAR2(60 BYTE) DEFAULT NULL,
  "SEGMENT2" VARCHAR2(60 BYTE),
  "ATTRIBUTE1" VARCHAR2(240 BYTE),
  "ATTRIBUTE2" VARCHAR2(240 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(30 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(30 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(30 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(30 BYTE),
  "EXECUTOR" VARCHAR2(60 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."INTERFACE_RQC_ID" IS 'ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."MTL_OWNER_ID" IS '货主id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."SRC_HEADER_ID" IS '来源单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."SRC_LINE_ID" IS '来源单行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."ASN_HEADER_ID" IS 'ASN头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."ASN_LINE_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."RCV_LINE_ID" IS '收货行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."LOCATOR_NUM" IS '库位编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."QTY" IS '数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."CHECK_QTY" IS '抽样数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."BATCH_ID" IS '批次ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."PIECE_QTY" IS '单品数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."CHECK_PIECE_QTY" IS '单品数量(抽样)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."VENDOR_BATCH_NUM" IS '批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."MANUFACTURER_LOT_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."ACTIVE_FLAG" IS '是否允许作业标识';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."STATUS" IS '状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."SEGMENT1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."SEGMENT2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."ATTRIBUTE1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."ATTRIBUTE2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL"."EXECUTOR" IS '执行者';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" IS 'WMS质检接口表
WMS支持3种质检模式，通过新增的质检参数rqc_process进行区分（到货主，到仓库）：
1-ERP抽样ERP质检，
2-WMS抽样ERP质检，
3-WMS抽样WMS质检。

该数据由ERP下发

抽样/质检


?	当rqc_process=1时，抽样质检由ERP完成。WMS上架确认后回传收货信息给ERP，ERP抽样质检完成后下传质检结果给WMS，WMS根据ERP下传的质检结果处理库存和单据。
?	当rqc_process=2时，抽样由WMS完成，质检由ERP完成。WMS上架确认后回传收货信息给ERP，ERP根据WMS回传的收货信息下传抽样信息。
n	若需要质检，则WMS根据ERP下传的抽样信息生成质检单，进行抽样送检作业，送检完成后等待ERP下传质检结果，WMS根据ERP下传的质检结果处理库存和单据。
n	若不需要质检，则WMS根据ERP下传的收货结论处理库存和单据。
?	当rqc_process=3时，抽样质检由WMS完成。若需要质检，则WMS上架确认后生成质检单，WMS抽样质检完成后回传质检结果给ERP。
注: 暂时未使用
';

-- ----------------------------
-- Table structure for WMS_IN_RCV_HEADERS
-- ----------------------------
CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" (
  "RCV_HEADER_ID" VARCHAR2(30 BYTE) DEFAULT NULL NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(30 BYTE) NOT NULL,
  "MTL_OWNER_ID" VARCHAR2(30 BYTE) NOT NULL,
  "AUTO_BILL_NUM" VARCHAR2(30 BYTE) NOT NULL,
  "SRC_HEADER_ID" VARCHAR2(1000 BYTE),
  "SRC_AUTO_BILL_NUM" VARCHAR2(1000 BYTE),
  "ASN_HEADER_ID" VARCHAR2(1000 BYTE),
  "ASN_AUTO_BILL_NUM" VARCHAR2(1000 BYTE),
  "CUSTOM_BILL_NUM" VARCHAR2(60 BYTE),
  "EXECUTOR_USER" VARCHAR2(60 BYTE),
  "RCV_DATE" DATE NOT NULL,
  "RCV_TYPE" VARCHAR2(32 BYTE) NOT NULL,
  "STATUS" VARCHAR2(32 BYTE) NOT NULL,
  "STATUS_AS" VARCHAR2(32 BYTE),
  "ORGN_ID" VARCHAR2(32 BYTE),
  "VENDOR_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "BUYER_ID" VARCHAR2(32 BYTE),
  "CUSTOMER_ID" VARCHAR2(32 BYTE),
  "SRC_ORGN_ID" VARCHAR2(32 BYTE),
  "SRC_WAREHOUSE_ID" VARCHAR2(32 BYTE),
  "SRC_MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "CASE_QTY" NUMBER(30,4) DEFAULT 0  NOT NULL,
  "PIECE_QTY" NUMBER(30,4) NOT NULL,
  "ACCESS_LEVEL" CHAR(1 BYTE) DEFAULT '1'  NOT NULL,
  "COMMENTS" VARCHAR2(240 BYTE),
  "SEGMENT1" VARCHAR2(60 BYTE),
  "SEGMENT2" VARCHAR2(60 BYTE),
  "SEGMENT3" VARCHAR2(60 BYTE),
  "SEGMENT4" VARCHAR2(60 BYTE),
  "SEGMENT5" VARCHAR2(60 BYTE),
  "ATTRIBUTE1" VARCHAR2(240 BYTE),
  "ATTRIBUTE2" VARCHAR2(240 BYTE),
  "ATTRIBUTE3" VARCHAR2(240 BYTE),
  "ATTRIBUTE4" VARCHAR2(240 BYTE),
  "ATTRIBUTE5" VARCHAR2(240 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(32 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(32 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "AUDIT_DATE" DATE,
  "AUDITED_BY" VARCHAR2(32 BYTE),
  "PRINT_COUNT" NUMBER(10,0) DEFAULT 0,
  "PRINT_DATE" DATE,
  "PRINTED_BY" VARCHAR2(32 BYTE),
  "AUDITED_NAME" VARCHAR2(32 BYTE),
  "PRINTED_NAME" VARCHAR2(32 BYTE),
  "CONFIRMED_BY" VARCHAR2(32 BYTE),
  "CONFIRMED_NAME" VARCHAR2(32 BYTE),
  "CONFIRM_DATE" DATE,
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "ITEM_CATEGORY_CODE" VARCHAR2(32 BYTE),
  "ASN_REMARK" VARCHAR2(42 BYTE),
  "NEED_DEPT" VARCHAR2(42 BYTE),
  "NEED_USER" VARCHAR2(42 BYTE),
  "AGENT" VARCHAR2(42 BYTE),
  "SALE_BILL_NO" VARCHAR2(42 BYTE),
  "SALE_BILL_TYPE" VARCHAR2(42 BYTE),
  "DEPARTMENT" VARCHAR2(42 BYTE),
  "BIZ_USER" VARCHAR2(42 BYTE),
  "RETURN_TYPE" VARCHAR2(42 BYTE),
  "SHIPPER_ZJM" VARCHAR2(500 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."RCV_HEADER_ID" IS '单头ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."MTL_OWNER_ID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."AUTO_BILL_NUM" IS '自动单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SRC_HEADER_ID" IS '来源单ID列表';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SRC_AUTO_BILL_NUM" IS '来源单号列表';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."ASN_HEADER_ID" IS '来源单ID列表(ASN)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."ASN_AUTO_BILL_NUM" IS '来源单号列表(ASN)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."CUSTOM_BILL_NUM" IS '手工单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."EXECUTOR_USER" IS '操作员(收货员)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."RCV_DATE" IS '收货日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."RCV_TYPE" IS '收货类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."STATUS" IS '状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."STATUS_AS" IS 'status_as(辅助状态，外部系统对接 例如上传ERP)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."ORGN_ID" IS '组织ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."VENDOR_ID" IS '供应商ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."BUYER_ID" IS '采购员ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."CUSTOMER_ID" IS '客户ID（销退客户ID）XT';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SRC_ORGN_ID" IS '源组织ID(调拨组织ID)    YC';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SRC_WAREHOUSE_ID" IS '源仓库ID(调拨源仓ID)    YC';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SRC_MTL_OWNER_ID" IS '源货主ID(移库入库的源货主ID)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."CASE_QTY" IS '箱数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."PIECE_QTY" IS '单品数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."ACCESS_LEVEL" IS 'access_level';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."COMMENTS" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SEGMENT1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SEGMENT2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SEGMENT3" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SEGMENT4" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SEGMENT5" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."ATTRIBUTE1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."ATTRIBUTE2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."ATTRIBUTE3" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."AUDIT_DATE" IS 'audit_date';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."AUDITED_BY" IS 'audited_by';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."PRINT_COUNT" IS '打印次数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."PRINT_DATE" IS '打印日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."PRINTED_BY" IS '打印人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."AUDITED_NAME" IS 'audited_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."PRINTED_NAME" IS 'printed_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."CONFIRMED_BY" IS '批准人id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."CONFIRMED_NAME" IS '批准人名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."CONFIRM_DATE" IS '批准时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."ITEM_CATEGORY_CODE" IS '商品大类(预留)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."ASN_REMARK" IS 'asn单备注说明';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."NEED_DEPT" IS '要货部门';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."NEED_USER" IS '要货业务员';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."AGENT" IS '代理商';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SALE_BILL_NO" IS '销售开票单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SALE_BILL_TYPE" IS '账期类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."DEPARTMENT" IS '部门(名称)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."BIZ_USER" IS '业务员';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."RETURN_TYPE" IS '退货类型(码表-rcv_return_type)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS"."SHIPPER_ZJM" IS '单位助记码(客户/供应商/来源仓)';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" IS '收货单头信息';

-- ----------------------------
-- Table structure for WMS_IN_RCV_HEADERS_PIC
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" (
  "RCV_HEADER_PIC_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RCV_HEADER_ID" VARCHAR2(30 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(30 BYTE) NOT NULL,
  "PIC_FILENAME" VARCHAR2(20 BYTE) NOT NULL,
  "PIC_FILEURL" VARCHAR2(100 BYTE) NOT NULL,
  "EXECUTOR_DATE" DATE DEFAULT SYSDATE  NOT NULL,
  "EXECUTOR_USERID" VARCHAR2(10 BYTE) NOT NULL,
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(30 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(30 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(30 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(30 BYTE),
  "EXECUTOR_USER_NAME" VARCHAR2(30 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."RCV_HEADER_PIC_ID" IS '上传ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."PIC_FILENAME" IS '图片名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."PIC_FILEURL" IS '图片地址';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."EXECUTOR_DATE" IS '上传时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."EXECUTOR_USERID" IS '上传人id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC"."EXECUTOR_USER_NAME" IS '上传人名称';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" IS '收货单头图片 1:N';

-- ----------------------------
-- Table structure for WMS_IN_RCV_HEADERS_PROFILES
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" (
  "RCV_HEADER_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE),
  "TA_TI" NUMBER(32,10),
  "TA_TE" NUMBER(32,12),
  "TA_TAX" NUMBER(32,12),
  "CANCELLED_BY" VARCHAR2(32 BYTE),
  "CANCELLED_NAME" VARCHAR2(32 BYTE),
  "CANCEL_DATE" DATE,
  "WAREHOUSE_MANAGER" VARCHAR2(32 BYTE) DEFAULT NULL,
  "ORDER_HEADER_ID" VARCHAR2(32 BYTE),
  "ORDER_AUTO_NUM" VARCHAR2(32 BYTE),
  "LICENSE_PLATE_NUMBER" VARCHAR2(32 BYTE),
  "COLDSTORETYPE" VARCHAR2(10 BYTE),
  "COLD" VARCHAR2(10 BYTE),
  "SHIP_FROM_ADD" VARCHAR2(100 BYTE),
  "SHIP_FROM_DATE" DATE,
  "SHIP_TYPE" VARCHAR2(10 BYTE),
  "TEMPERATUREC_TYPE" VARCHAR2(20 BYTE),
  "SHIP_ARRIVE_TIME" DATE,
  "ARRIVAL_MODE" VARCHAR2(20 BYTE),
  "SHIP_ARRIVE_TEM_PERATURE" NUMBER(8,4),
  "SHIP_TEMPTRACK" VARCHAR2(50 BYTE),
  "TEMPCINFO" VARCHAR2(20 BYTE),
  "CARRIERNAME" VARCHAR2(40 BYTE),
  "ORGN_NUM" VARCHAR2(32 BYTE),
  "ORGN_NAME" VARCHAR2(120 BYTE),
  "VENDOR_NUM" VARCHAR2(32 BYTE),
  "VENDOR_NAME" VARCHAR2(120 BYTE),
  "WAREHOUSE_NUM" VARCHAR2(32 BYTE),
  "WAREHOUSE_NAME" VARCHAR2(120 BYTE),
  "BUYER_NUM" VARCHAR2(32 BYTE),
  "BUYER_MANE" VARCHAR2(60 BYTE),
  "CUSTOMER_NUM" VARCHAR2(32 BYTE),
  "CUSTOMER_NAME" VARCHAR2(120 BYTE),
  "MTL_OWNER_NUM" VARCHAR2(32 BYTE),
  "MTL_OWNER_NAME" VARCHAR2(120 BYTE),
  "SRC_ORGN_NUM" VARCHAR2(32 BYTE),
  "SRC_ORGN_NAME" VARCHAR2(60 BYTE),
  "SRC_WAREHOUSE_NUM" VARCHAR2(32 BYTE),
  "SRC_WAREHOUSE_NAME" VARCHAR2(60 BYTE),
  "SRC_MTL_OWNER_NUM" VARCHAR2(32 BYTE),
  "SRC_MTL_OWNER_NAME" VARCHAR2(32 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE,
  "CREATOR" VARCHAR2(32 BYTE),
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "SHIP_DAYS" NUMBER(11,0),
  "MTL_OWNER_BILL_NO" VARCHAR2(42 BYTE),
  "TRANSPORTATION_PARTY" VARCHAR2(80 BYTE),
  "ON_PASSAGE_DAYS" NUMBER(11,0),
  "SHIP_TEM_PERATURE" VARCHAR2(42 BYTE),
  "SHIP_DATE" DATE,
  "DEVICE_NO" VARCHAR2(64 BYTE),
  "TEMPCONTROL_MODE" VARCHAR2(42 BYTE),
  "TEMPCONTROL_STATUS" VARCHAR2(42 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."RCV_HEADER_ID" IS '单头ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."TA_TI" IS '含税金额';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."TA_TE" IS '不含税金额';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."TA_TAX" IS '税额';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."CANCELLED_BY" IS '作废人ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."CANCELLED_NAME" IS '作废人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."CANCEL_DATE" IS '作废时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."WAREHOUSE_MANAGER" IS '库管';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."ORDER_HEADER_ID" IS '来源预订单ID(销售)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."ORDER_AUTO_NUM" IS '来源预订单编码（销售）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."LICENSE_PLATE_NUMBER" IS '车牌号码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."COLDSTORETYPE" IS '冷藏方式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."COLD" IS '冷藏状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SHIP_FROM_ADD" IS '发运地点';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SHIP_FROM_DATE" IS '发运日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SHIP_TYPE" IS '运输方式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."TEMPERATUREC_TYPE" IS '温控方式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SHIP_ARRIVE_TIME" IS '到货时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."ARRIVAL_MODE" IS '到货方式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SHIP_ARRIVE_TEM_PERATURE" IS '到货温度';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SHIP_TEMPTRACK" IS '运输过程温度记录';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."TEMPCINFO" IS '温控状况';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."CARRIERNAME" IS '运输单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."ORGN_NUM" IS '组织编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."ORGN_NAME" IS '组织名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."VENDOR_NUM" IS '供应商编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."VENDOR_NAME" IS '供应商名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."WAREHOUSE_NUM" IS '仓库编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."WAREHOUSE_NAME" IS '仓库名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."BUYER_NUM" IS '采购员编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."BUYER_MANE" IS '采购员名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."CUSTOMER_NUM" IS '客户编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."CUSTOMER_NAME" IS '客户名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."MTL_OWNER_NUM" IS '货主编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."MTL_OWNER_NAME" IS '货主名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SRC_ORGN_NUM" IS '组织编码(移库/调拨组织ID)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SRC_ORGN_NAME" IS '组织名称(移库/调拨组织ID)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SRC_WAREHOUSE_NUM" IS '仓库编码(移库/调拨源仓ID)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SRC_WAREHOUSE_NAME" IS '仓库名称(移库/调拨源仓ID)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SRC_MTL_OWNER_NUM" IS '货主ID(移库入库的源货主编码)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SRC_MTL_OWNER_NAME" IS '货主ID(移库入库的源货主名称)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SHIP_DAYS" IS '在途时效(超过拦截)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."MTL_OWNER_BILL_NO" IS '货主单据编号(来源asn单)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."TRANSPORTATION_PARTY" IS '运输方';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."ON_PASSAGE_DAYS" IS '在途时限';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SHIP_TEM_PERATURE" IS '启运温度';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."SHIP_DATE" IS '启运时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."DEVICE_NO" IS '设备/车牌/冷藏箱 号码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."TEMPCONTROL_MODE" IS '温控方式(码表)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES"."TEMPCONTROL_STATUS" IS '温控状态';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" IS '收货单头辅助表(冗余字段的存放，收货跨库查询的数据可以从该表出)';

-- ----------------------------
-- Table structure for WMS_IN_RCV_HEADERS_SRC_BILLS
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" (
  "RCV_HEADER_SRC_BILL_ID" VARCHAR2(32 BYTE),
  "RCV_HEADER_ID" VARCHAR2(32 BYTE) NOT NULL,
  "CONFIRMED_BY" VARCHAR2(32 BYTE),
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "SRC_HEADER_TYPE" VARCHAR2(32 BYTE),
  "RCV_DATE" DATE NOT NULL,
  "RCV_TYPE" VARCHAR2(32 BYTE) NOT NULL,
  "LAST_UPDATED_NAME" VARCHAR2(32 BYTE),
  "CONFIRMED_NAME" VARCHAR2(32 BYTE),
  "CONFIRM_DATE" DATE,
  "SRC_HEADER_ID" VARCHAR2(512 BYTE),
  "SRC_AUTO_BILL_NUM" VARCHAR2(512 BYTE),
  "ASN_HEADER_ID" VARCHAR2(512 BYTE),
  "ASN_AUTO_BILL_NUM" VARCHAR2(512 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(32 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(32 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(32 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."RCV_HEADER_SRC_BILL_ID" IS '收货来源单列表来源单单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."RCV_HEADER_ID" IS '单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."CONFIRMED_BY" IS '批准人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."SRC_HEADER_TYPE" IS '来源单类型(CG XT YC)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."RCV_DATE" IS '收货日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."RCV_TYPE" IS '收货类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."LAST_UPDATED_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."CONFIRMED_NAME" IS '批准人名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."CONFIRM_DATE" IS '批准时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."SRC_HEADER_ID" IS '来源单ID列表';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."SRC_AUTO_BILL_NUM" IS '来源单号列表';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."ASN_HEADER_ID" IS '来源单ID列表(ASN)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS"."ASN_AUTO_BILL_NUM" IS '来源单号列表(ASN)';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" IS '收货单对应的源单列表（存类型是ASN+业务单）
与收货单头 1：N关系';

-- ----------------------------
-- Table structure for WMS_IN_RCV_INSTOCK_LINES
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" (
  "IN_BOUND_LINE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_LINE_ID" VARCHAR2(32 BYTE),
  "LINE_NUM" NUMBER(10,0),
  "WH_LOCATOR_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE),
  "PIECE_QTY" NUMBER(32,4),
  "UOM" VARCHAR2(32 BYTE),
  "UOM_TYPE" VARCHAR2(32 BYTE),
  "CONVERSION_RATE" NUMBER(14,4),
  "ODD_CASE_QTY" NUMBER(32,12) DEFAULT 0,
  "ODD_PIECE_QTY" NUMBER(32,12) DEFAULT 0,
  "BATCH_ID" VARCHAR2(32 BYTE),
  "BATCH_NUM" VARCHAR2(32 BYTE),
  "BATCH_PRODUCTION_DATE" DATE,
  "BATCH_EXPIRED_DATE" DATE,
  "VENDOR_BATCH_NUM" VARCHAR2(32 BYTE),
  "MANUFACTURER_LOT_NUM" VARCHAR2(32 BYTE),
  "CONTAINER_CODE" VARCHAR2(32 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(32 BYTE),
  "COMMENTS" VARCHAR2(240 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE,
  "CREATOR" VARCHAR2(32 BYTE),
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "ALGORITHM_TYPE" VARCHAR2(32 BYTE),
  "EXECUTOR_USER" VARCHAR2(60 BYTE),
  "STOCK_STATUS" VARCHAR2(60 BYTE),
  "SEGMENT1" VARCHAR2(60 BYTE),
  "SEGMENT2" VARCHAR2(60 BYTE),
  "SEGMENT3" VARCHAR2(60 BYTE),
  "SEGMENT4" VARCHAR2(60 BYTE),
  "SEGMENT5" VARCHAR2(60 BYTE),
  "ATTRIBUTE1" VARCHAR2(240 BYTE),
  "ATTRIBUTE2" VARCHAR2(240 BYTE),
  "ATTRIBUTE3" VARCHAR2(240 BYTE),
  "ATTRIBUTE4" VARCHAR2(240 BYTE),
  "ATTRIBUTE5" VARCHAR2(240 BYTE),
  "TASK_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE),
  "MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE),
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "WH_AREA_CATEGORY_CODE" VARCHAR2(32 BYTE),
  "WH_LOCATOR_CODE" VARCHAR2(32 BYTE),
  "WH_LOCATOR_NAME" VARCHAR2(120 BYTE),
  "WH_AREA_CATEGORY_NAME" VARCHAR2(120 BYTE),
  "BLDG_CODE" VARCHAR2(32 BYTE),
  "WH_AREA_CODE" VARCHAR2(32 BYTE),
  "WH_AREA_CATEGORY_ID" VARCHAR2(32 BYTE),
  "INSTOCK_LABEL" VARCHAR2(42 BYTE),
  "INVENTORY_STATUS" VARCHAR2(32 BYTE),
  "REAL_WH_LOCATOR_CODE" VARCHAR2(32 BYTE),
  "REAL_WH_LOCATOR_ID" VARCHAR2(32 BYTE),
  "REAL_WH_LOCATOR_NAME" VARCHAR2(32 BYTE),
  "BLDG_ID" VARCHAR2(32 BYTE),
  "REF_BILL_ID" VARCHAR2(42 BYTE),
  "REF_TYPE" NUMBER(2,0),
  "REF_LINE_ID" VARCHAR2(42 BYTE),
  "REF_BILL_NO" VARCHAR2(42 BYTE),
  "SUB_STATUS" VARCHAR2(32 BYTE),
  "INVENTORY_OP_TYPE" VARCHAR2(32 BYTE),
  "HOST_LOCATOR_ID" VARCHAR2(64 BYTE),
  "SECOND_STATUS" VARCHAR2(64 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."IN_BOUND_LINE_ID" IS '行ID(主键id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."LINE_NUM" IS '行号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."WH_LOCATOR_ID" IS '库位ID(实际货位)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."PIECE_QTY" IS '单品数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."UOM_TYPE" IS '包装单位类型(2019/2020)新老包装';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."ODD_CASE_QTY" IS '整箱数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."ODD_PIECE_QTY" IS '零散数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."BATCH_ID" IS 'batch_id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."BATCH_PRODUCTION_DATE" IS '批次生产日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."BATCH_EXPIRED_DATE" IS '批次有效期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."VENDOR_BATCH_NUM" IS '供应商批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."MANUFACTURER_LOT_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."CONTAINER_CODE" IS '容器编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."GOODS_CASE_CODE" IS '货格编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."COMMENTS" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."ALGORITHM_TYPE" IS '上架推荐库位算法(预留) A1.R1/A2.R2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."EXECUTOR_USER" IS '执行者（上架员）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."STOCK_STATUS" IS '收货库存结论（0不合格/1合格/2待处理/3待检)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."TASK_ID" IS '任务池ID（来源TASK）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."ENTERPRISE_ID" IS '企业ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."MTL_OWNER_ID" IS '货主ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."WAREHOUSE_ID" IS '仓库ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."SRC_BILL_TYPE" IS '来源单类型（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."SRC_HEADER_ID" IS '来源单头ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."SRC_LINE_ID" IS '来源单行ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."ASN_HEADER_ID" IS 'ASN头ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."ASN_LINE_ID" IS 'ASN行ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."WH_AREA_CATEGORY_CODE" IS '库别编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."WH_LOCATOR_CODE" IS '库位编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."WH_LOCATOR_NAME" IS '库位名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."WH_AREA_CATEGORY_NAME" IS '库别名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."BLDG_CODE" IS '建筑物编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."WH_AREA_CODE" IS '库区编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."WH_AREA_CATEGORY_ID" IS '库别id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."INSTOCK_LABEL" IS '上架标签';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."INVENTORY_STATUS" IS '库存状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."REAL_WH_LOCATOR_CODE" IS '实际货位编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."REAL_WH_LOCATOR_ID" IS '实际货位id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."REAL_WH_LOCATOR_NAME" IS '实际货位名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."BLDG_ID" IS '建筑物id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."REF_BILL_ID" IS '操作来源单(头)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."REF_TYPE" IS '操作来源单类型 0:收货1:质检2:复检';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."REF_LINE_ID" IS '操作来源单行(明细)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."REF_BILL_NO" IS '操作来源单编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."SUB_STATUS" IS '库存子状态(1 正常/2 虚拟/ 3 实物/4 直调)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."INVENTORY_OP_TYPE" IS '库存转换操作类型 0-代管转正常;1-代管转待检;2-待检转正常';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."HOST_LOCATOR_ID" IS '关联的代管货位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES"."SECOND_STATUS" IS '货主关联库存状态id&code链接符号&';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" IS '上架单行
来源于上架任务池';

-- ----------------------------
-- Table structure for WMS_IN_RCV_LINES
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" (
  "RCV_LINE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RCV_HEADER_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(512 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(512 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE) NOT NULL,
  "UOM" VARCHAR2(32 BYTE) NOT NULL,
  "LINE_NUM" NUMBER(10,0) NOT NULL,
  "UOM_TYPE" VARCHAR2(32 BYTE),
  "QTY" NUMBER(32,4) NOT NULL,
  "CONVERSION_RATE" NUMBER(14,4) NOT NULL,
  "PIECE_QTY" NUMBER(32,4) NOT NULL,
  "ODD_CASE_QTY" NUMBER(32,12) DEFAULT 0  NOT NULL,
  "ODD_PIECE_QTY" NUMBER(32,12) DEFAULT 0  NOT NULL,
  "BATCH_ID" VARCHAR2(32 BYTE),
  "BATCH_NUM" VARCHAR2(32 BYTE),
  "BATCH_PRODUCTION_DATE" DATE,
  "BATCH_EXPIRED_DATE" DATE,
  "VENDOR_BATCH_NUM" VARCHAR2(32 BYTE),
  "MANUFACTURER_LOT_NUM" VARCHAR2(32 BYTE),
  "ERP_BATCH_NUM" VARCHAR2(32 BYTE),
  "CONTAINER_CODE" VARCHAR2(32 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(32 BYTE),
  "STOCK_STATUS" VARCHAR2(20 BYTE),
  "RCV_REASON1" VARCHAR2(100 BYTE),
  "RCV_REASON2" VARCHAR2(100 BYTE),
  "RCV_REASON3" VARCHAR2(100 BYTE),
  "RCV_RT_REASON" VARCHAR2(100 BYTE),
  "WAREHOUSE_AREA" VARCHAR2(100 BYTE),
  "WAREHOUSE_LOCATOR" VARCHAR2(100 BYTE),
  "EXECUTOR_USER" VARCHAR2(60 BYTE),
  "SEGMENT1" VARCHAR2(60 BYTE),
  "SEGMENT2" VARCHAR2(60 BYTE),
  "SEGMENT3" VARCHAR2(60 BYTE),
  "SEGMENT4" VARCHAR2(60 BYTE),
  "SEGMENT5" VARCHAR2(60 BYTE),
  "ATTRIBUTE1" VARCHAR2(4000 BYTE),
  "ATTRIBUTE2" VARCHAR2(240 BYTE),
  "ATTRIBUTE3" VARCHAR2(240 BYTE),
  "ATTRIBUTE4" VARCHAR2(240 BYTE),
  "ATTRIBUTE5" VARCHAR2(240 BYTE),
  "COMMENTS" VARCHAR2(240 BYTE),
  "CREATED_NAME" VARCHAR2(32 BYTE),
  "LAST_UPDATED_NAME" VARCHAR2(32 BYTE),
  "WMS_PIECE_QTY" NUMBER(32,4) DEFAULT 0,
  "STATUS_AS" CHAR(10 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(32 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(32 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE),
  "ITEM_HEALTH_IS_DOUBLE" NUMBER(14,0),
  "FREE_QTY" NUMBER(11,4),
  "ITEM_WEIGHT" NUMBER(11,4),
  "ITEM_VOLUME" NUMBER(11,4),
  "APPROVAL_NUMBER" VARCHAR2(42 BYTE),
  "PRODUCTION_PLACE" VARCHAR2(2000 BYTE),
  "WAREHOUSE_NAME" VARCHAR2(255 BYTE),
  "WAREHOUSE_AREA_CODES" VARCHAR2(800 BYTE),
  "MTL_OWNER_NAME" VARCHAR2(255 BYTE),
  "ITEM_HEALTH_TWOVOTEFLAG" NUMBER(14,0),
  "DATA_VERSION" NUMBER(14,0),
  "ITEM_IS_PIECE_OR_CASE" VARCHAR2(10 BYTE),
  "WAREHOUSE_AREA_CATEGORYS" VARCHAR2(800 BYTE),
  "WAREHOUSE_AREA_NAME" VARCHAR2(255 BYTE),
  "WAREHOUSE_AREA_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_AREA_CODE" VARCHAR2(42 BYTE),
  "BLDG_ID" VARCHAR2(32 BYTE),
  "BLDG_NAME" VARCHAR2(58 BYTE),
  "BLDG_CODE" VARCHAR2(42 BYTE),
  "RCV_TYPE" VARCHAR2(32 BYTE),
  "RCV_DATE" DATE,
  "DELEGATION_PARTY_ID" VARCHAR2(32 BYTE),
  "DELEGATION_PARTY_NAME" VARCHAR2(120 BYTE),
  "SHOW_PRODUCTION_DATE" VARCHAR2(42 BYTE),
  "SHOW_EXPIRED_DATE" VARCHAR2(42 BYTE),
  "WAREHOUSE_ROOM_CODES" VARCHAR2(800 BYTE),
  "PIECE_CONVERSION_RATE" NUMBER(11,0),
  "ASN_LINE_REMARK" VARCHAR2(255 BYTE),
  "ITEM_ZJM" VARCHAR2(500 BYTE),
  "IS_DELEGATE" NUMBER(1,0) DEFAULT 0,
  "IS_RETROSPECT" NUMBER(1,0) DEFAULT 0,
  "RQC_REPORT_NO" VARCHAR2(42 BYTE),
  "WH_LOCATOR_ID" VARCHAR2(64 BYTE),
  "WH_LOCATOR_CODE" VARCHAR2(64 BYTE),
  "WH_AREA_CODE" VARCHAR2(64 BYTE),
  "WH_AREA_CATEGORY_CODE" VARCHAR2(64 BYTE),
  "INVENTORY_OP_TYPE" VARCHAR2(32 BYTE),
  "HOST_LOCATOR_ID" VARCHAR2(64 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."RCV_LINE_ID" IS '行ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."RCV_HEADER_ID" IS '头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ENTERPRISE_ID" IS '企业id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."SRC_HEADER_ID" IS '来源单ID列表';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."SRC_LINE_ID" IS '来源单ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ASN_HEADER_ID" IS '来源单ID列表(ASN)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ASN_LINE_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."LINE_NUM" IS '行号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."UOM_TYPE" IS '包装单位类型(2019/2020)新老包装';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."QTY" IS '单位数量(单位数量小数点(最小单位数量/单位含量))';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."CONVERSION_RATE" IS '单位含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."PIECE_QTY" IS '最小单位总数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ODD_CASE_QTY" IS '单位整数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ODD_PIECE_QTY" IS '零散数(最小单位数)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."BATCH_ID" IS 'batch_id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."BATCH_PRODUCTION_DATE" IS '批次生产日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."BATCH_EXPIRED_DATE" IS '批次有效期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."VENDOR_BATCH_NUM" IS '供应商批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."MANUFACTURER_LOT_NUM" IS '生产商批号(手动填)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ERP_BATCH_NUM" IS 'erp批号（预留字段）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."CONTAINER_CODE" IS '容器编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."GOODS_CASE_CODE" IS '货格编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."STOCK_STATUS" IS '收货结论（0合格/1不合格/2待处理/3拒绝）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."RCV_REASON1" IS '处理原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."RCV_REASON2" IS '不足原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."RCV_REASON3" IS '不足原因补充';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."RCV_RT_REASON" IS '退货原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WAREHOUSE_AREA" IS '推荐库区';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WAREHOUSE_LOCATOR" IS '推荐库位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."EXECUTOR_USER" IS '执行者（收货员）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."SEGMENT1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."SEGMENT2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."SEGMENT3" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."SEGMENT4" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."SEGMENT5" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ATTRIBUTE1" IS '存储额外json数据';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ATTRIBUTE2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ATTRIBUTE3" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ATTRIBUTE4" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ATTRIBUTE5" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."COMMENTS" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."CREATED_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."LAST_UPDATED_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WMS_PIECE_QTY" IS 'WMS已入库最小单位数量？';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."STATUS_AS" IS '辅助状态（做上传控制）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."MTL_OWNER_ID" IS '货主id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WAREHOUSE_ID" IS '仓库id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ITEM_HEALTH_IS_DOUBLE" IS '商品是否双人质检(0否1是 默认0)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."FREE_QTY" IS '赠品数量(最小单位数)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ITEM_WEIGHT" IS '商品重量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ITEM_VOLUME" IS '商品体积';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."APPROVAL_NUMBER" IS '批准文号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."PRODUCTION_PLACE" IS '产地';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WAREHOUSE_NAME" IS '仓库名';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WAREHOUSE_AREA_CODES" IS '推荐库区code列表';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."MTL_OWNER_NAME" IS '货主名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ITEM_HEALTH_TWOVOTEFLAG" IS '是否两票制(0否1是) ';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."DATA_VERSION" IS '数据版本号(每次操作加1)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ITEM_IS_PIECE_OR_CASE" IS '商品整散分离标识(0整散合一/1整散分开)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WAREHOUSE_AREA_CATEGORYS" IS '推荐库别列表';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WAREHOUSE_AREA_NAME" IS '选择的库区名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WAREHOUSE_AREA_ID" IS '选择的库区id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WAREHOUSE_AREA_CODE" IS '选择的库区code';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."BLDG_ID" IS '建筑物id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."BLDG_NAME" IS '建筑物名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."BLDG_CODE" IS '建筑物编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."RCV_TYPE" IS '收货类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."RCV_DATE" IS '收货日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."DELEGATION_PARTY_ID" IS '受托企业id(oem厂商id,oms)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."DELEGATION_PARTY_NAME" IS '受托企业名称(oem厂商名称,oms)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."SHOW_PRODUCTION_DATE" IS '显示生产日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."SHOW_EXPIRED_DATE" IS '显示有效期至';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WAREHOUSE_ROOM_CODES" IS '推荐库房列表';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."PIECE_CONVERSION_RATE" IS '最小包装数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ASN_LINE_REMARK" IS 'asn行备注说明';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."ITEM_ZJM" IS '商品助记码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."IS_DELEGATE" IS '是否委托生产(0否1是)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."IS_RETROSPECT" IS '是否追溯(0否1是)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."RQC_REPORT_NO" IS '质检报告单编号(来源批次信息)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WH_LOCATOR_ID" IS '货位id/用于调账选择';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WH_LOCATOR_CODE" IS '货位code/用于调账选择';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WH_AREA_CODE" IS '货位库区code/用于调账选择';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."WH_AREA_CATEGORY_CODE" IS '库别code/用于调账选择';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."INVENTORY_OP_TYPE" IS '库存转换操作类型 0-代管转正常;1-代管转待检;2-待检转正常';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES"."HOST_LOCATOR_ID" IS '关联的代管货位';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" IS '收货行数据，
数量，批次，容器，收货人，结论，原因

（收货异常处理日志
在上架前可做，只调整数量和批次信息
未上架，可以修改所有原单数据，保留日志）

收货行数据=上架+拒收';

-- ----------------------------
-- Table structure for WMS_IN_RCV_LINES_PIC
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC" (
  "RCV_HEADER_PIC_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(50 BYTE),
  "SRC_AUTO_BULL_NUM" VARCHAR2(50 BYTE),
  "ENT_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" CHAR(32 BYTE),
  "BATCH_ID" CHAR(32 BYTE),
  "PIC_FILENAME" VARCHAR2(20 BYTE),
  "PIC_FILEURL" VARCHAR2(320 BYTE),
  "EXECUTOR_DATE" DATE,
  "EXECUTOR_USERID" VARCHAR2(32 BYTE),
  "EXECUTOR_USER_NAME" VARCHAR2(32 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE,
  "CREATOR" VARCHAR2(32 BYTE),
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "ENTERPRISE_ID" VARCHAR2(32 BYTE),
  "RCV_LINE_ID" VARCHAR2(32 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."RCV_HEADER_PIC_ID" IS '上传ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."SRC_HEADER_ID" IS '采购单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."SRC_AUTO_BULL_NUM" IS '采购单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."ENT_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."BATCH_ID" IS '批次ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."PIC_FILENAME" IS '图片名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."PIC_FILEURL" IS '图片地址';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."EXECUTOR_DATE" IS '上传时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."EXECUTOR_USERID" IS '上传人员id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."EXECUTOR_USER_NAME" IS '上传人员名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."ENTERPRISE_ID" IS '企业id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC" IS '与收货单行图片 1:N';

-- ----------------------------
-- Table structure for WMS_IN_RCV_LINES_PROFILES
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" (
  "RCV_LINE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "ENTERPRISE_ID" VARCHAR2(32 BYTE),
  "LINE_NUM" NUMBER(10,0),
  "ITEM_ID" VARCHAR2(32 BYTE),
  "ITEM_NUM" VARCHAR2(80 BYTE),
  "ITEM_NAME" VARCHAR2(500 BYTE),
  "PARENTITEMID" VARCHAR2(32 BYTE),
  "LINETYPE" VARCHAR2(20 BYTE),
  "SIZECODE" VARCHAR2(6 BYTE),
  "COLORCODE" VARCHAR2(6 BYTE),
  "REVISION" VARCHAR2(6 BYTE),
  "VENDORITEMCODE" VARCHAR2(20 BYTE),
  "CATEGORY_ID" VARCHAR2(86 BYTE),
  "PIECE_PRICE_TI" NUMBER(30,10),
  "PIECE_PRICE_TE" NUMBER(30,12),
  "UNIT_PRICE_TI" NUMBER(30,10),
  "UNIT_PRICE_TE" NUMBER(30,12),
  "TA_TI" NUMBER(30,10),
  "TA_TE" NUMBER(30,12),
  "TA_TAX" NUMBER(30,12),
  "DISCOUNT_RATE" NUMBER(30,12),
  "TAX_RATE" NUMBER(10,4),
  "REF_PURCHASE_PRICE_TI" NUMBER(30,10) DEFAULT 0,
  "COLDSTORETYPE" VARCHAR2(10 BYTE),
  "COLD" VARCHAR2(10 BYTE),
  "SHIPFROMADD" VARCHAR2(100 BYTE),
  "SHIPFROMDATE" DATE,
  "SHIPTYPE" VARCHAR2(10 BYTE),
  "TEMPERATURECTYPE" VARCHAR2(20 BYTE),
  "SHIPARRIVETIME" DATE,
  "SHIPARRIVETEMPERATURE" NUMBER(8,4),
  "SHIPTEMPTRACK" VARCHAR2(50 BYTE),
  "TEMPCINFO" VARCHAR2(20 BYTE),
  "CARRIERNAME" VARCHAR2(40 BYTE),
  "STERILIZELOTNO" VARCHAR2(50 BYTE),
  "IMPPAPERNO" VARCHAR2(50 BYTE),
  "CMPACKLOTNO" VARCHAR2(32 BYTE),
  "RCVSTOCKSTATUSREASON" VARCHAR2(10 BYTE),
  "STERILIZEEXPDATE" DATE,
  "STERILIZESNNO" VARCHAR2(100 BYTE),
  "PAPERNO" VARCHAR2(50 BYTE),
  "COMMENTS" VARCHAR2(240 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE,
  "CREATOR" VARCHAR2(32 BYTE),
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "CATEGORY_NAME" VARCHAR2(42 BYTE),
  "ITEM_BARCODE" VARCHAR2(255 BYTE),
  "SPECIFICATION" VARCHAR2(255 BYTE),
  "ITEM_IS_IMPORTED" NUMBER(2,0),
  "ITEM_HEALTH_LISTED_LICENSOR" VARCHAR2(120 BYTE),
  "ITEM_HEALTH_PRODUCE_LICENSE" VARCHAR2(120 BYTE),
  "ITEM_HEALTH_STORE_CATEGORY" VARCHAR2(42 BYTE),
  "ITEM_IS_RECHECK" NUMBER(2,0),
  "IS_INSTRUMENT" NUMBER(2,0),
  "MANUFACTURER_ID" VARCHAR2(32 BYTE),
  "MANUFACTURER_CODE" VARCHAR2(32 BYTE),
  "MANUFACTURER_NAME" VARCHAR2(120 BYTE),
  "ITEM_HEALTH_REGISTER_NBR" VARCHAR2(120 BYTE),
  "ITEM_HEALTH_COMMON_NAME" VARCHAR2(120 BYTE),
  "RETURN_INFO" VARCHAR2(500 BYTE),
  "RETURN_COLD_QUALITY" VARCHAR2(250 BYTE),
  "RETURN_EXPLAIN" VARCHAR2(500 BYTE),
  "IS_LOCK" NUMBER(1,0),
  "IS_HOSTED" NUMBER(1,0),
  "ITEM_IS_SPECIAL" NUMBER(1,0),
  "IS_BACTERIA" NUMBER(1,0),
  "SHELF_LIFE_DAYS" NUMBER(11,0),
  "SHELF_LIFE_UNIT" VARCHAR2(255 BYTE),
  "RETURN_TYPE" VARCHAR2(42 BYTE),
  "STORE_TEMPERATURE" VARCHAR2(42 BYTE),
  "PO_AUDIT_OPINION" VARCHAR2(255 BYTE),
  "ALLOW_DECIMAL" VARCHAR2(12 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."RCV_LINE_ID" IS '行ID(和rcv_line主键一致)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."RCV_HEADER_ID" IS '头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."LINE_NUM" IS '行号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."ITEM_NUM" IS '商品编号(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."ITEM_NAME" IS '商品名称(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."PARENTITEMID" IS '上级商品ID(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."LINETYPE" IS '行类型(预留)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."SIZECODE" IS '尺寸(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."COLORCODE" IS '颜色(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."REVISION" IS '版本(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."VENDORITEMCODE" IS '供应商商品编码(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."CATEGORY_ID" IS '商品分类(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."PIECE_PRICE_TI" IS '单品含税进价';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."PIECE_PRICE_TE" IS '单品不含税进价';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."UNIT_PRICE_TI" IS '含税进价';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."UNIT_PRICE_TE" IS '不含税进价';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."TA_TI" IS '含税金额';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."TA_TE" IS '不含税金额';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."TA_TAX" IS '税额';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."DISCOUNT_RATE" IS '扣率';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."TAX_RATE" IS '税率';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."REF_PURCHASE_PRICE_TI" IS '参考进价(单品)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."COLDSTORETYPE" IS '冷藏方式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."COLD" IS '冷藏状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."SHIPFROMADD" IS '发运地点';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."SHIPFROMDATE" IS '发运日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."SHIPTYPE" IS '运输方式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."TEMPERATURECTYPE" IS '温控方式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."SHIPARRIVETIME" IS '到货时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."SHIPARRIVETEMPERATURE" IS '到货温度';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."SHIPTEMPTRACK" IS '运输过程温度记录';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."TEMPCINFO" IS '温控状况';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."CARRIERNAME" IS '运输单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."STERILIZELOTNO" IS '灭菌批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."IMPPAPERNO" IS '进口注册证号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."CMPACKLOTNO" IS '中药分装批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."RCVSTOCKSTATUSREASON" IS '评定原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."STERILIZEEXPDATE" IS '灭菌效期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."STERILIZESNNO" IS '灭菌序号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."PAPERNO" IS 'Paper注册证号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."COMMENTS" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."CATEGORY_NAME" IS '商品类别名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."ITEM_BARCODE" IS '商品条码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."SPECIFICATION" IS '商品规格说明';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."ITEM_IS_IMPORTED" IS '进口标识';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."ITEM_HEALTH_LISTED_LICENSOR" IS '上市许可持有人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."ITEM_HEALTH_PRODUCE_LICENSE" IS '生产企业许可证号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."ITEM_HEALTH_STORE_CATEGORY" IS '存储分类';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."ITEM_IS_RECHECK" IS '商品是否复检(0否1是)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."IS_INSTRUMENT" IS '是否器械(0否1是默认0)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."MANUFACTURER_ID" IS '生产厂家id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."MANUFACTURER_CODE" IS '生产厂家编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."MANUFACTURER_NAME" IS '生产厂家名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."ITEM_HEALTH_REGISTER_NBR" IS '商品注册证号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."ITEM_HEALTH_COMMON_NAME" IS '商品通用名';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."RETURN_INFO" IS '退货单位提供的商品售出期间储存、运输质量控制情况';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."RETURN_COLD_QUALITY" IS '退货冷藏品出库期质量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."RETURN_EXPLAIN" IS '退货说明';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."IS_LOCK" IS '商品是否锁定';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."IS_HOSTED" IS '商品是否代管';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."ITEM_IS_SPECIAL" IS '是否特殊品';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."IS_BACTERIA" IS '是否无菌';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."SHELF_LIFE_DAYS" IS '商品有效期(天)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."SHELF_LIFE_UNIT" IS '保质期单位类型  年/月/日   默认为日';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."RETURN_TYPE" IS '退货类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."STORE_TEMPERATURE" IS '商品存储条件(码表,常温/恒温/阴凉/冷藏/冷冻)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."PO_AUDIT_OPINION" IS '采购审核意见';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES"."ALLOW_DECIMAL" IS '是否允许小数拆分(Y是,其他不允许)';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" IS '收货单明细扩展表
(冗余字段的存放，收货跨库查询的数据可以从该表出)
运输信息，价格，医药信息等';

-- ----------------------------
-- Table structure for WMS_IN_RCV_REJECT_LINES
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES" (
  "IN_REJECT_LINE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RCV_HEADER_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RCV_LINE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "LINE_NUM" NUMBER(10,0),
  "WAREHOUSE_LOCATOR_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE) NOT NULL,
  "PIECE_QTY" NUMBER(30,4) NOT NULL,
  "UOM" VARCHAR2(32 BYTE) NOT NULL,
  "UOM_TYPE" VARCHAR2(32 BYTE),
  "CONVERSION_RATE" NUMBER(14,4) NOT NULL,
  "ODD_CASE_QTY" NUMBER(30,12) DEFAULT 0,
  "ODD_PIECE_QTY" NUMBER(30,12) DEFAULT 0,
  "BATCH_ID" VARCHAR2(32 BYTE) NOT NULL,
  "BATCH_NUM" VARCHAR2(32 BYTE),
  "BATCH_PRODUCTION_DATE" DATE,
  "BATCH_EXPIRED_DATE" DATE,
  "VENDOR_BATCH_NUM" VARCHAR2(32 BYTE),
  "MANUFACTURER_LOT_NUM" VARCHAR2(32 BYTE),
  "CONTAINER_CODE" VARCHAR2(32 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(32 BYTE),
  "COMMENTS" VARCHAR2(240 BYTE),
  "RESULT" VARCHAR2(32 BYTE),
  "REASON" VARCHAR2(100 BYTE),
  "EXECUTOR_USER" VARCHAR2(60 BYTE),
  "SEGMENT1" VARCHAR2(60 BYTE),
  "SEGMENT2" VARCHAR2(60 BYTE),
  "SEGMENT3" VARCHAR2(60 BYTE),
  "SEGMENT4" VARCHAR2(60 BYTE),
  "SEGMENT5" VARCHAR2(60 BYTE),
  "ATTRIBUTE1" VARCHAR2(240 BYTE),
  "ATTRIBUTE2" VARCHAR2(240 BYTE),
  "ATTRIBUTE3" VARCHAR2(240 BYTE),
  "ATTRIBUTE4" VARCHAR2(240 BYTE),
  "ATTRIBUTE5" VARCHAR2(240 BYTE),
  "TASK_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE),
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE,
  "CREATOR" VARCHAR2(32 BYTE),
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."IN_REJECT_LINE_ID" IS '行ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."LINE_NUM" IS '行号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."WAREHOUSE_LOCATOR_ID" IS '库位ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."PIECE_QTY" IS '单品数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."UOM_TYPE" IS '包装单位类型(2019/2020)新老包装';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."ODD_CASE_QTY" IS '整箱数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."ODD_PIECE_QTY" IS '零散数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."BATCH_ID" IS 'batch_id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."BATCH_PRODUCTION_DATE" IS '批次生产日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."BATCH_EXPIRED_DATE" IS '批次有效期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."VENDOR_BATCH_NUM" IS '供应商批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."MANUFACTURER_LOT_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."CONTAINER_CODE" IS '容器编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."GOODS_CASE_CODE" IS '货格编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."COMMENTS" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."RESULT" IS '结论(拒收)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."REASON" IS '原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."EXECUTOR_USER" IS '执行者';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."TASK_ID" IS '任务池ID（来源TASK）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."ENTERPRISE_ID" IS '企业ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."MTL_OWNER_ID" IS '货主ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."WAREHOUSE_ID" IS '仓库ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."SRC_BILL_TYPE" IS '来源单类型（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."SRC_HEADER_ID" IS '来源单头ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."SRC_LINE_ID" IS '来源单行ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."ASN_HEADER_ID" IS 'ASN头ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."ASN_LINE_ID" IS 'ASN行ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES" IS '收货拒收单行
来源于拒收任务池 注:暂未使用';

-- ----------------------------
-- Table structure for WMS_IN_RCV_TEMP_SAVE
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE" (
  "ID" VARCHAR2(30 BYTE) NOT NULL,
  "CONTENT" CLOB,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE),
  "DC_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE),
  "CARGO_OWNER_ID" VARCHAR2(32 BYTE),
  "GMT_CREATE" DATE,
  "CREATOR" VARCHAR2(100 BYTE),
  "CREATOR_NAME" VARCHAR2(100 BYTE),
  "GMT_MODIFIED" DATE,
  "MODIFIER" VARCHAR2(100 BYTE),
  "MODIFIER_NAME" VARCHAR2(100 BYTE),
  "ASN_HEADER_ID" VARCHAR2(1000 BYTE),
  "ASN_AUTO_BILL_NUM" VARCHAR2(1000 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."ID" IS '单头ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."CONTENT" IS '内容';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."DC_ID" IS '仓配中心ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."WAREHOUSE_ID" IS '仓ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."CARGO_OWNER_ID" IS '货主id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."CREATOR_NAME" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."MODIFIER_NAME" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."ASN_HEADER_ID" IS '来源单ID列表(ASN)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE"."ASN_AUTO_BILL_NUM" IS '来源单号列表(ASN)';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE" IS '收货单头信息';

-- ----------------------------
-- Table structure for WMS_IN_RQC_HEADERS
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" (
  "RQC_HEADER_ID" VARCHAR2(32 BYTE) NOT NULL,
  "CUSTOM_BILL_NUM" VARCHAR2(60 BYTE),
  "AUTO_BILL_NUM" VARCHAR2(32 BYTE),
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "VENDOR_ID" VARCHAR2(50 BYTE),
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "BILL_DATE" DATE NOT NULL,
  "STATUS" VARCHAR2(20 BYTE) DEFAULT '1'  NOT NULL,
  "REMARK" VARCHAR2(250 BYTE),
  "WORK_BENCH" VARCHAR2(32 BYTE),
  "QC_OPERATOR1" VARCHAR2(32 BYTE),
  "QC_OPERATOR2" VARCHAR2(32 BYTE),
  "DATA_SRC_TYPE" VARCHAR2(32 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(32 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(32 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "IS_INSTOCK_PRINT" NUMBER(2,0) DEFAULT 0,
  "REF_BILL_ID" VARCHAR2(42 BYTE),
  "REF_TYPE" NUMBER(2,0),
  "REF_BILL_NO" VARCHAR2(42 BYTE),
  "RQC_TEMPERATURE" VARCHAR2(64 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."RQC_HEADER_ID" IS '单据id(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."CUSTOM_BILL_NUM" IS '手工单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."AUTO_BILL_NUM" IS '单据自动号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."ENTERPRISE_ID" IS '企业ID(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."MTL_OWNER_ID" IS '货主ID(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."WAREHOUSE_ID" IS '仓库ID(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."VENDOR_ID" IS '供应商ID(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."SRC_BILL_TYPE" IS '来源单类型(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."SRC_HEADER_ID" IS '来源单头ID(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."ASN_HEADER_ID" IS 'ASN头ID(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."BILL_DATE" IS '单据日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."STATUS" IS '状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."REMARK" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."WORK_BENCH" IS '工作台';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."QC_OPERATOR1" IS '质检员1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."QC_OPERATOR2" IS '质检员2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."DATA_SRC_TYPE" IS '数据生成方式（系统自动/人工）部分类型的单据自动生成质检单';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."IS_INSTOCK_PRINT" IS '是否打印上架标签(0否1是,默认0)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."REF_BILL_ID" IS '操作来源单(头)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."REF_TYPE" IS '操作来源单类型 0:收货1:质检2:复检';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."REF_BILL_NO" IS '操作来源单编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS"."RQC_TEMPERATURE" IS '验收温度';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" IS '质检单汇总
关联收货单，可以查询出所有编码，名称信息';

-- ----------------------------
-- Table structure for WMS_IN_RQC_LINES
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" (
  "RQC_LINE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RQC_HEADER_ID" VARCHAR2(32 BYTE),
  "TASK_RQC_ID" VARCHAR2(32 BYTE),
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_LINE_ID" VARCHAR2(32 BYTE),
  "ENTERPRISE_ID" VARCHAR2(32 BYTE),
  "MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE),
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE),
  "CONTAINER_CODE" VARCHAR2(32 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(32 BYTE),
  "BATCH_ID" VARCHAR2(32 BYTE),
  "UOM" VARCHAR2(32 BYTE),
  "UOM_TYPE" VARCHAR2(32 BYTE),
  "CONVERSION_RATE" NUMBER(14,4),
  "PIECE_QTY" NUMBER(30,4),
  "ODD_CASE_QTY" NUMBER(30,12) DEFAULT 0,
  "ODD_PIECE_QTY" NUMBER(30,12) DEFAULT 0,
  "QC_ODD_CASE_QTY" NUMBER(30,12) DEFAULT 0,
  "QC_ODD_PIECE_QTY" NUMBER(30,12) DEFAULT 0,
  "QC_ODD_CASE_ACT_QTY" NUMBER(30,12) DEFAULT 0,
  "QC_ODD_PIECE_ACT_QTY" NUMBER(30,12) DEFAULT 0,
  "LINE_REMARK" VARCHAR2(255 BYTE),
  "QC_STATUS1" VARCHAR2(2 BYTE),
  "QC_RESULT1" VARCHAR2(10 BYTE),
  "QC_REASON1" VARCHAR2(100 BYTE),
  "QC_GRADE1" VARCHAR2(10 BYTE),
  "QC_OPCODE1" VARCHAR2(20 BYTE),
  "QC_DATE1" DATE,
  "QC_STATUS2" VARCHAR2(2 BYTE),
  "QC_RESULT2" VARCHAR2(10 BYTE),
  "QC_REASON2" VARCHAR2(100 BYTE),
  "QC_GRADE2" VARCHAR2(10 BYTE),
  "QC_OPCODE2" VARCHAR2(20 BYTE) DEFAULT '',
  "QC_STATUS3" VARCHAR2(2 BYTE),
  "QC_RESULT3" VARCHAR2(10 BYTE),
  "QC_REASON3" VARCHAR2(100 BYTE),
  "QC_GRADE3" VARCHAR2(10 BYTE),
  "QC_OPCODE3" VARCHAR2(20 BYTE),
  "QC_DATE2" DATE,
  "QC_DATE3" DATE,
  "STOCK_STATUS" VARCHAR2(10 BYTE),
  "ITEM_FLAG" VARCHAR2(20 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE,
  "CREATOR" VARCHAR2(32 BYTE),
  "CREATOR_NAME" VARCHAR2(32 CHAR) DEFAULT '',
  "GMT_MODIFIED" DATE DEFAULT SYSDATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "TIMES" NUMBER(2,0),
  "ITEM_HEALTH_IS_DOUBLE" NUMBER,
  "MANUFACTURER_LOT_NUM" VARCHAR2(32 BYTE),
  "BATCH_NUM" VARCHAR2(42 BYTE),
  "VENDOR_BATCH_NUM" VARCHAR2(42 BYTE),
  "WH_AREA_CATEGORY" VARCHAR2(32 BYTE),
  "WH_AREA_CODES" VARCHAR2(32 BYTE),
  "HANDLING_SUGGESTION" VARCHAR2(255 BYTE),
  "DEF_REASON" VARCHAR2(42 BYTE),
  "SAMPLE_DATE" DATE,
  "RQC_SAMPLE_ID" VARCHAR2(32 BYTE),
  "HANDLING_REASON" VARCHAR2(42 BYTE),
  "DEF_REASON_EXT" VARCHAR2(255 BYTE),
  "HANDLING_MEASURE" VARCHAR2(42 BYTE),
  "PICK_GOODS_EXPLAIN" VARCHAR2(255 BYTE),
  "RETURN_TYPE" VARCHAR2(42 BYTE),
  "REF_BILL_ID" VARCHAR2(42 BYTE),
  "REF_TYPE" NUMBER(2,0),
  "REF_LINE_ID" VARCHAR2(42 BYTE),
  "REF_BILL_NO" VARCHAR2(42 BYTE),
  "RQC_TEMPERATURE" VARCHAR2(64 BYTE),
  "SECOND_STATUS" VARCHAR2(64 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."RQC_LINE_ID" IS '唯一行号ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."RQC_HEADER_ID" IS '单据id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."TASK_RQC_ID" IS '质检任务池ID（来源RQC_TASK）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."ENTERPRISE_ID" IS '企业ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."MTL_OWNER_ID" IS '货主ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."WAREHOUSE_ID" IS '仓库ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."SRC_BILL_TYPE" IS '来源单类型（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."SRC_HEADER_ID" IS '来源单头ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."SRC_LINE_ID" IS '来源单行ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."ASN_HEADER_ID" IS 'ASN头ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."ASN_LINE_ID" IS 'ASN行ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."CONTAINER_CODE" IS '容器编码（冗余，关联收货单行）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."GOODS_CASE_CODE" IS '货格编码（冗余，关联收货单行）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."BATCH_ID" IS '批次ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."UOM_TYPE" IS '包装单位类型(2019/2020)新老包装';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."PIECE_QTY" IS '最小单位数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."ODD_CASE_QTY" IS '收货整箱数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."ODD_PIECE_QTY" IS '收货零散数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_ODD_CASE_QTY" IS '抽样整箱数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_ODD_PIECE_QTY" IS '抽样零散数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_ODD_CASE_ACT_QTY" IS '实际抽样整箱数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_ODD_PIECE_ACT_QTY" IS '实际抽样零散数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."LINE_REMARK" IS '行备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_STATUS1" IS '质检状态（0初始/1确认）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_RESULT1" IS '质检结论1（0合格/1不合格/2待处理/3拒绝）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_REASON1" IS '质检原因1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_GRADE1" IS '质检等级1(预留)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_OPCODE1" IS '质检员1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_DATE1" IS '质检时间1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_STATUS2" IS '质检状态2（初始/确认）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_RESULT2" IS '质检结论2（0合格/1不合格/2待处理/3拒绝）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_REASON2" IS '质检原因2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_GRADE2" IS '质检等级2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_OPCODE2" IS '质检员2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_STATUS3" IS '质检状态2（初始/确认）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_RESULT3" IS '质检结论2（0合格/1不合格/2待处理/3拒绝）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_REASON3" IS '质检原因3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_GRADE3" IS '质检等级3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_OPCODE3" IS '质检员3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_DATE2" IS '质检时间2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."QC_DATE3" IS '质检时间3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."STOCK_STATUS" IS '库存状态(质检状态)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."ITEM_FLAG" IS '货品标志';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."TIMES" IS '质检次数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."ITEM_HEALTH_IS_DOUBLE" IS '商品是否双人质检(0否1是,默认0)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."MANUFACTURER_LOT_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."VENDOR_BATCH_NUM" IS '供应商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."WH_AREA_CATEGORY" IS '实际库别';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."WH_AREA_CODES" IS '实际库区code列表';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."HANDLING_SUGGESTION" IS '处理意见';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."DEF_REASON" IS '不足原因(码表)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."SAMPLE_DATE" IS '抽样日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."RQC_SAMPLE_ID" IS '抽检关联id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."HANDLING_REASON" IS '处理原因(码表)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."DEF_REASON_EXT" IS '不足原因补充';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."HANDLING_MEASURE" IS '处理措施(码表)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."PICK_GOODS_EXPLAIN" IS '提货说明';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."RETURN_TYPE" IS '退货类型(码表)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."REF_BILL_ID" IS '操作来源单(头)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."REF_TYPE" IS '操作来源单类型 0:收货1:质检2:复检';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."REF_LINE_ID" IS '操作来源单行(明细)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."REF_BILL_NO" IS '操作来源单编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."RQC_TEMPERATURE" IS '验收温度';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES"."SECOND_STATUS" IS '是否双人收货0否1是';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" IS '质检单明细
关联收货单，可以查询出所有信息

(结论：合格/不合格/待处理)
合格/不合格 ：上架任务池
待处理：复检任务池';

-- ----------------------------
-- Table structure for WMS_IN_RQC_LINES_copy1
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" (
  "RQC_LINE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RQC_HEADER_ID" VARCHAR2(32 BYTE),
  "TASK_RQC_ID" VARCHAR2(32 BYTE),
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_LINE_ID" VARCHAR2(32 BYTE),
  "ENTERPRISE_ID" VARCHAR2(32 BYTE),
  "MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE),
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE),
  "CONTAINER_CODE" VARCHAR2(32 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(32 BYTE),
  "BATCH_ID" VARCHAR2(32 BYTE),
  "UOM" VARCHAR2(32 BYTE),
  "UOM_TYPE" VARCHAR2(32 BYTE),
  "CONVERSION_RATE" NUMBER(14,4),
  "PIECE_QTY" NUMBER(30,4),
  "ODD_CASE_QTY" NUMBER(30,12) DEFAULT 0,
  "ODD_PIECE_QTY" NUMBER(30,12) DEFAULT 0,
  "QC_ODD_CASE_QTY" NUMBER(30,12) DEFAULT 0,
  "QC_ODD_PIECE_QTY" NUMBER(30,12) DEFAULT 0,
  "QC_ODD_CASE_ACT_QTY" NUMBER(30,12) DEFAULT 0,
  "QC_ODD_PIECE_ACT_QTY" NUMBER(30,12) DEFAULT 0,
  "LINE_REMARK" VARCHAR2(255 BYTE),
  "QC_STATUS1" VARCHAR2(2 BYTE),
  "QC_RESULT1" VARCHAR2(10 BYTE),
  "QC_REASON1" VARCHAR2(100 BYTE),
  "QC_GRADE1" VARCHAR2(10 BYTE),
  "QC_OPCODE1" VARCHAR2(20 BYTE),
  "QC_DATE1" DATE,
  "QC_STATUS2" VARCHAR2(2 BYTE),
  "QC_RESULT2" VARCHAR2(10 BYTE),
  "QC_REASON2" VARCHAR2(100 BYTE),
  "QC_GRADE2" VARCHAR2(10 BYTE),
  "QC_OPCODE2" VARCHAR2(20 BYTE) DEFAULT '',
  "QC_STATUS3" VARCHAR2(2 BYTE),
  "QC_RESULT3" VARCHAR2(10 BYTE),
  "QC_REASON3" VARCHAR2(100 BYTE),
  "QC_GRADE3" VARCHAR2(10 BYTE),
  "QC_OPCODE3" VARCHAR2(20 BYTE),
  "QC_DATE2" DATE,
  "QC_DATE3" DATE,
  "STOCK_STATUS" VARCHAR2(10 BYTE),
  "ITEM_FLAG" VARCHAR2(20 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE,
  "CREATOR" VARCHAR2(32 BYTE),
  "CREATOR_NAME" VARCHAR2(32 CHAR) DEFAULT '',
  "GMT_MODIFIED" DATE DEFAULT SYSDATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "TIMES" NUMBER(2,0),
  "ITEM_HEALTH_IS_DOUBLE" NUMBER,
  "MANUFACTURER_LOT_NUM" VARCHAR2(32 BYTE),
  "BATCH_NUM" VARCHAR2(42 BYTE),
  "VENDOR_BATCH_NUM" VARCHAR2(42 BYTE),
  "WH_AREA_CATEGORY" VARCHAR2(32 BYTE),
  "WH_AREA_CODES" VARCHAR2(32 BYTE),
  "HANDLING_SUGGESTION" VARCHAR2(255 BYTE),
  "DEF_REASON" VARCHAR2(255 BYTE),
  "SAMPLE_DATE" DATE,
  "RQC_SAMPLE_ID" VARCHAR2(32 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."RQC_LINE_ID" IS '唯一行号ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."RQC_HEADER_ID" IS '单据id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."TASK_RQC_ID" IS '质检任务池ID（来源RQC_TASK）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."ENTERPRISE_ID" IS '企业ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."MTL_OWNER_ID" IS '货主ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."WAREHOUSE_ID" IS '仓库ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."SRC_BILL_TYPE" IS '来源单类型（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."SRC_HEADER_ID" IS '来源单头ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."SRC_LINE_ID" IS '来源单行ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."ASN_HEADER_ID" IS 'ASN头ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."ASN_LINE_ID" IS 'ASN行ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."CONTAINER_CODE" IS '容器编码（冗余，关联收货单行）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."GOODS_CASE_CODE" IS '货格编码（冗余，关联收货单行）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."BATCH_ID" IS '批次ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."UOM_TYPE" IS '包装单位类型(2019/2020)新老包装';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."PIECE_QTY" IS '最小单位数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."ODD_CASE_QTY" IS '收货整箱数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."ODD_PIECE_QTY" IS '收货零散数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_ODD_CASE_QTY" IS '抽样整箱数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_ODD_PIECE_QTY" IS '抽样零散数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_ODD_CASE_ACT_QTY" IS '实际抽样整箱数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_ODD_PIECE_ACT_QTY" IS '实际抽样零散数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."LINE_REMARK" IS '行备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_STATUS1" IS '质检状态（0初始/1确认）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_RESULT1" IS '质检结论1（0合格/1不合格/2待处理/3拒绝）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_REASON1" IS '质检原因1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_GRADE1" IS '质检等级1(预留)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_OPCODE1" IS '质检员1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_DATE1" IS '质检时间1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_STATUS2" IS '质检状态2（初始/确认）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_RESULT2" IS '质检结论2（0合格/1不合格/2待处理/3拒绝）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_REASON2" IS '质检原因2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_GRADE2" IS '质检等级2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_OPCODE2" IS '质检员2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_STATUS3" IS '质检状态2（初始/确认）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_RESULT3" IS '质检结论2（0合格/1不合格/2待处理/3拒绝）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_REASON3" IS '质检原因3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_GRADE3" IS '质检等级3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_OPCODE3" IS '质检员3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_DATE2" IS '质检时间2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."QC_DATE3" IS '质检时间3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."STOCK_STATUS" IS '库存状态(质检状态)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."ITEM_FLAG" IS '货品标志';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."TIMES" IS '质检次数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."ITEM_HEALTH_IS_DOUBLE" IS '商品是否双人质检(0否1是,默认0)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."MANUFACTURER_LOT_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."VENDOR_BATCH_NUM" IS '供应商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."WH_AREA_CATEGORY" IS '实际库别';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."WH_AREA_CODES" IS '实际库区code列表';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."HANDLING_SUGGESTION" IS '处理意见(措施)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."DEF_REASON" IS '不足原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."SAMPLE_DATE" IS '抽样日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1"."RQC_SAMPLE_ID" IS '抽检关联id';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" IS '质检单明细
关联收货单，可以查询出所有信息

(结论：合格/不合格/待处理)
合格/不合格 ：上架任务池
待处理：复检任务池';

-- ----------------------------
-- Table structure for WMS_IN_RQC_LINE_PIC
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" (
  "RQC_PIC_LINE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "TASK_RQC_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RQC_HEADER_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_LINE_ID" VARCHAR2(32 BYTE),
  "MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "SOURCE_BILL_TYP" VARCHAR2(32 BYTE),
  "SOURCE_HEADER_ID" VARCHAR2(32 BYTE),
  "SOURCE_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE) NOT NULL,
  "LINE_NUM" NUMBER NOT NULL,
  "BATCH_ID" VARCHAR2(50 BYTE) NOT NULL,
  "PIC_FILE_NAME" VARCHAR2(20 BYTE) NOT NULL,
  "PIC_FILE_URL" VARCHAR2(100 BYTE) NOT NULL,
  "OP_DATE" DATE NOT NULL,
  "OP_USERID" VARCHAR2(32 BYTE) NOT NULL,
  "REFBILLNO" VARCHAR2(50 BYTE) NOT NULL,
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(32 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(32 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(32 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."RQC_PIC_LINE_ID" IS '唯一行号ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."TASK_RQC_ID" IS 'ID（来源RQC_TASK）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."RQC_HEADER_ID" IS '单据id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."MTL_OWNER_ID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."SOURCE_BILL_TYP" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."SOURCE_HEADER_ID" IS '来源单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."SOURCE_LINE_ID" IS '来源单行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."ASN_HEADER_ID" IS 'ASN头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."ASN_LINE_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."LINE_NUM" IS '行号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."BATCH_ID" IS '批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."PIC_FILE_NAME" IS '图片名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."PIC_FILE_URL" IS '图片地址';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."OP_DATE" IS '上传时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."OP_USERID" IS '上传人员';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."REFBILLNO" IS '采购单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" IS '质检单图片';

-- ----------------------------
-- Table structure for WMS_IN_RQC_RECHEK_HEADERS
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" (
  "CONSIGNOR" VARCHAR2(32 BYTE) NOT NULL,
  "ORIGINALBILLNO" VARCHAR2(50 BYTE) NOT NULL,
  "REFBILLNO" VARCHAR2(50 BYTE),
  "BILLNO" VARCHAR2(50 BYTE) NOT NULL,
  "BILL_DATE" DATE NOT NULL,
  "COMPANYCODE" VARCHAR2(50 BYTE) NOT NULL,
  "QCSTATUS" VARCHAR2(2 BYTE) NOT NULL,
  "REQCSTATUS" VARCHAR2(2 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS"."CONSIGNOR" IS '业主编号(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS"."ORIGINALBILLNO" IS '采购单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS"."REFBILLNO" IS '收货单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS"."BILLNO" IS '质检单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS"."BILL_DATE" IS '单据日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS"."COMPANYCODE" IS '供应商编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS"."QCSTATUS" IS '质检状态(10初始11已打印13已确认)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS"."REQCSTATUS" IS '复检状态';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" IS '复检单头';

-- ----------------------------
-- Table structure for WMS_IN_RQC_RECHEK_LINES
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES" (
  "CONSIGNOR" VARCHAR2(32 BYTE) NOT NULL,
  "BILLNO" VARCHAR2(50 BYTE) NOT NULL,
  "RQC_LINEID" VARCHAR2(32 BYTE) NOT NULL,
  "CONTAINERNO" VARCHAR2(50 BYTE),
  "ITEMID" VARCHAR2(50 BYTE) NOT NULL,
  "LOTID" VARCHAR2(50 BYTE),
  "QC_STATUS" VARCHAR2(2 BYTE) NOT NULL,
  "QC_RESULT" VARCHAR2(32 BYTE),
  "QC_REASON" VARCHAR2(100 BYTE),
  "QCOPCODE" VARCHAR2(32 BYTE),
  "QCOPDATE" DATE,
  "REQCRESULT" VARCHAR2(32 BYTE),
  "REQCOPDATE" DATE,
  "REQCOPCODE" VARCHAR2(32 BYTE),
  "QCODD" NUMBER(16,3),
  "QCPCS" NUMBER(16,0),
  "QCQTY" NUMBER(16,3),
  "TIMES" NUMBER(2,0)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."CONSIGNOR" IS '业主编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."BILLNO" IS '质检单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."RQC_LINEID" IS '行号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."CONTAINERNO" IS '容器';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."ITEMID" IS '商品编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."LOTID" IS '批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."QC_STATUS" IS '质检状态（10初始13确认）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."QC_RESULT" IS '质检结论（合格/不合格）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."QC_REASON" IS '质检原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."QCOPCODE" IS '质检人员';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."QCOPDATE" IS '质检时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."REQCRESULT" IS '复检结论';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."REQCOPDATE" IS '复检时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."REQCOPCODE" IS '复检人员';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."QCODD" IS '零头';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."QCPCS" IS '件数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."QCQTY" IS '数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES"."TIMES" IS '复检次数';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES" IS '复检单行';

-- ----------------------------
-- Table structure for WMS_IN_RQC_RE_HEADERS
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS" (
  "RQC_RE_HEADER_ID" VARCHAR2(32 BYTE) NOT NULL,
  "CUSTOM_BILL_NUM" VARCHAR2(60 BYTE),
  "AUTO_BILL_NUM" VARCHAR2(32 BYTE),
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "MTL_OWNER_ID" VARCHAR2(32 BYTE) NOT NULL,
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "VENDOR_ID" VARCHAR2(50 BYTE),
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "BILL_DATE" DATE NOT NULL,
  "STATUS" VARCHAR2(20 BYTE) DEFAULT '1',
  "REMARK" VARCHAR2(250 BYTE),
  "WORK_BENCH" VARCHAR2(32 BYTE),
  "QC_OPERATOR1" VARCHAR2(32 BYTE),
  "QC_OPERATOR2" VARCHAR2(32 BYTE),
  "DATA_SRC_TYPE" VARCHAR2(32 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE,
  "CREATOR" VARCHAR2(32 BYTE),
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "REF_BILL_ID" VARCHAR2(42 BYTE),
  "REF_TYPE" NUMBER(2,0),
  "REF_BILL_NO" VARCHAR2(42 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."RQC_RE_HEADER_ID" IS '单据id(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."CUSTOM_BILL_NUM" IS '手工单号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."AUTO_BILL_NUM" IS '单据自动号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."ENTERPRISE_ID" IS '企业ID(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."MTL_OWNER_ID" IS '货主ID(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."WAREHOUSE_ID" IS '仓库ID(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."VENDOR_ID" IS '供应商ID(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."SRC_BILL_TYPE" IS '来源单类型(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."SRC_HEADER_ID" IS '来源单头ID(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."ASN_HEADER_ID" IS 'ASN头ID(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."BILL_DATE" IS '单据日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."STATUS" IS '状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."REMARK" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."WORK_BENCH" IS '工作台';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."QC_OPERATOR1" IS '复检员1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."QC_OPERATOR2" IS '复检员2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."DATA_SRC_TYPE" IS '数据生成方式（系统自动/人工）部分类型的单据自动生成质检单';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."REF_BILL_ID" IS '操作来源单(头)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."REF_TYPE" IS '操作来源单类型 0:收货1:质检2:复检)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS"."REF_BILL_NO" IS '操作来源单编号';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS" IS '质检单汇总
关联收货单，可以查询出所有编码，名称信息';

-- ----------------------------
-- Table structure for WMS_IN_RQC_RE_LINES
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES" (
  "RQC_RE_LINE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RQC_RE_HEADER_ID" VARCHAR2(32 BYTE) NOT NULL,
  "TASK_RE_RQC_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_LINE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "MTL_OWNER_ID" VARCHAR2(32 BYTE) NOT NULL,
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE) NOT NULL,
  "CONTAINER_CODE" VARCHAR2(32 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(32 BYTE),
  "BATCH_ID" VARCHAR2(32 BYTE),
  "UOM" VARCHAR2(32 BYTE),
  "UOM_TYPE" VARCHAR2(32 BYTE),
  "CONVERSION_RATE" NUMBER(14,4),
  "PIECE_QTY" NUMBER(30,4),
  "ODD_CASE_QTY" NUMBER(30,12) DEFAULT 0,
  "ODD_PIECE_QTY" NUMBER(30,12) DEFAULT 0,
  "QC_ODD_CASE_QTY" NUMBER(30,12) DEFAULT 0,
  "QC_ODD_PIECE_QTY" NUMBER(30,12) DEFAULT 0,
  "QC_ODD_CASE_ACT_QTY" NUMBER(30,12) DEFAULT 0,
  "QC_ODD_PIECE_ACT_QTY" NUMBER(30,12) DEFAULT 0,
  "LINE_REMARK" VARCHAR2(100 BYTE),
  "QC_STATUS" VARCHAR2(2 BYTE),
  "QC_RESULT" VARCHAR2(10 BYTE),
  "QC_REASON" VARCHAR2(100 BYTE),
  "QC_GRADE" VARCHAR2(10 BYTE),
  "QC_OPCODE" VARCHAR2(20 BYTE),
  "QC_DATE" DATE,
  "QC_RE_STATUS" VARCHAR2(2 BYTE),
  "QC_RE_RESULT" VARCHAR2(10 BYTE),
  "QC_RE_REASON" VARCHAR2(100 BYTE),
  "QC_RE_GRADE" VARCHAR2(10 BYTE),
  "QC_RE_OPCODE" VARCHAR2(20 BYTE),
  "QC_RE_DATE" DATE,
  "STOCK_STATUS" VARCHAR2(10 BYTE) NOT NULL,
  "ITEM_FLAG" VARCHAR2(20 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE,
  "CREATOR" VARCHAR2(32 BYTE),
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "TIMES" NUMBER(2,0),
  "MANUFACTURER_LOT_NUM" VARCHAR2(32 BYTE),
  "BATCH_NUM" VARCHAR2(42 BYTE),
  "VENDOR_BATCH_NUM" VARCHAR2(42 BYTE),
  "HANDLING_SUGGESTION" VARCHAR2(255 BYTE),
  "REF_BILL_ID" VARCHAR2(42 BYTE),
  "REF_TYPE" NUMBER(2,0),
  "REF_LINE_ID" VARCHAR2(42 BYTE),
  "REF_BILL_NO" VARCHAR2(42 BYTE),
  "ADUIT_SUGGESTION" VARCHAR2(255 BYTE),
  "QC_RE_SUGGESTION" VARCHAR2(255 BYTE),
  "QC_RE_RESULT2" VARCHAR2(10 BYTE),
  "QC_RE_OPCODE2" VARCHAR2(42 BYTE),
  "QC_RE_DATE2" DATE,
  "QC_RE_SUGGESTION2" VARCHAR2(255 BYTE),
  "QC_RE_RESULT3" VARCHAR2(10 BYTE),
  "QC_RE_OPCODE3" VARCHAR2(42 BYTE),
  "QC_RE_DATE3" DATE,
  "QC_RE_SUGGESTION3" VARCHAR2(255 BYTE),
  "HANDLING_REASON" VARCHAR2(42 BYTE),
  "DEF_REASON_EXT" VARCHAR2(255 BYTE),
  "HANDLING_MEASURE" VARCHAR2(42 BYTE),
  "DEF_REASON" VARCHAR2(42 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."RQC_RE_LINE_ID" IS '唯一行号ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."RQC_RE_HEADER_ID" IS '单据id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."TASK_RE_RQC_ID" IS '质检任务池ID（来源RQC_RE_TASK）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."ENTERPRISE_ID" IS '企业ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."MTL_OWNER_ID" IS '货主ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."WAREHOUSE_ID" IS '仓库ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."SRC_BILL_TYPE" IS '来源单类型（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."SRC_HEADER_ID" IS '来源单头ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."SRC_LINE_ID" IS '来源单行ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."ASN_HEADER_ID" IS 'ASN头ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."ASN_LINE_ID" IS 'ASN行ID（冗余，关联收货单）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."CONTAINER_CODE" IS '容器编码（冗余，关联收货单行）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."GOODS_CASE_CODE" IS '货格编码（冗余，关联收货单行）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."BATCH_ID" IS '批次ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."UOM_TYPE" IS '包装单位类型(2019/2020)新老包装';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."PIECE_QTY" IS '最小单位数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."ODD_CASE_QTY" IS '收货整箱数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."ODD_PIECE_QTY" IS '收货零散数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_ODD_CASE_QTY" IS '抽样整箱数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_ODD_PIECE_QTY" IS '抽样零散数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_ODD_CASE_ACT_QTY" IS '实际抽样整箱数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_ODD_PIECE_ACT_QTY" IS '实际抽样零散数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."LINE_REMARK" IS '行备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_STATUS" IS '质检状态（初始/确认）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RESULT" IS '质检结论（0合格/1不合格/2待处理/3拒绝）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_REASON" IS '质检原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_GRADE" IS '质检等级';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_OPCODE" IS '质检员';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_DATE" IS '质检时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_STATUS" IS '复检状态1（初始/确认）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_RESULT" IS '复检结论1（0合格/1不合格/2待处理）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_REASON" IS '复检原因1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_GRADE" IS '复检等级1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_OPCODE" IS '复检员1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_DATE" IS '复检时间1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."STOCK_STATUS" IS '复检最终结论(0合格/1不合格/2待处理/3拒绝）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."ITEM_FLAG" IS '货品标志';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."TIMES" IS '复检次数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."MANUFACTURER_LOT_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."VENDOR_BATCH_NUM" IS '供应商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."HANDLING_SUGGESTION" IS '处理意见';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."REF_BILL_ID" IS '操作来源单(头)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."REF_TYPE" IS '操作来源单类型 0:收货1:质检2:复检';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."REF_LINE_ID" IS '操作来源单行(明细)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."REF_BILL_NO" IS '操作来源单编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."ADUIT_SUGGESTION" IS '审核意见';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_SUGGESTION" IS '复检意见1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_RESULT2" IS '复检结论2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_OPCODE2" IS '复检员2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_DATE2" IS '复检时间2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_SUGGESTION2" IS '复检意见2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_RESULT3" IS '复检结论3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_OPCODE3" IS '复检员3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_DATE3" IS '复检时间3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."QC_RE_SUGGESTION3" IS '复检意见3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."HANDLING_REASON" IS '处理原因(码表)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."DEF_REASON_EXT" IS '不足原因补充';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."HANDLING_MEASURE" IS '处理措施(码表)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES"."DEF_REASON" IS '不足原因(码表)';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES" IS '质检单明细
关联收货单，可以查询出所有信息

(结论：合格/不合格/待处理)
合格/不合格 ：上架任务池
待处理：复检任务池';

-- ----------------------------
-- Table structure for WMS_IN_RQC_SAMPLE
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE" (
  "RQC_SAMPLE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RCV_HEADER_ID" VARCHAR2(42 BYTE),
  "RCV_LINE_ID" VARCHAR2(42 BYTE),
  "RQC_LINE_ID" VARCHAR2(42 BYTE),
  "RQC_HEADER_ID" VARCHAR2(42 BYTE),
  "ENTERPRISE_ID" VARCHAR2(42 BYTE),
  "MTL_OWNER_ID" VARCHAR2(42 BYTE),
  "WAREHOUSE_ID" VARCHAR2(42 BYTE),
  "SRC_BILL_TYPE" VARCHAR2(42 BYTE),
  "SRC_LINE_ID" VARCHAR2(42 BYTE),
  "SRC_HEADER_ID" VARCHAR2(42 BYTE),
  "ASN_HEADER_ID" VARCHAR2(42 BYTE),
  "ASN_LINE_ID" VARCHAR2(42 BYTE),
  "ITEM_ID" VARCHAR2(42 BYTE),
  "BATCH_ID" VARCHAR2(42 BYTE),
  "UOM" VARCHAR2(32 BYTE),
  "PIECE_QTY" NUMBER(28,4),
  "CONVERSION_RATE" NUMBER(28,4),
  "ODD_CASE_QTY" NUMBER(28,4),
  "ODD_PIECE_QTY" NUMBER(28,4),
  "QC_ODD_CASE_QTY" NUMBER(28,4),
  "QC_ODD_PIECE_QTY" NUMBER(28,4),
  "QC_ODD_CASE_ACT_QTY" NUMBER(28,4),
  "QC_ODD_PIECE_ACT_QTY" NUMBER(28,4),
  "REMARK" VARCHAR2(255 BYTE),
  "SAMPLE_DATE" DATE,
  "BATCH_NUM" VARCHAR2(42 BYTE),
  "CREATOR" VARCHAR2(42 BYTE),
  "CREATOR_NAME" VARCHAR2(48 BYTE),
  "GMT_CREATE" DATE,
  "MODIFIER" VARCHAR2(42 BYTE),
  "MODIFIER_NAME" VARCHAR2(48 BYTE),
  "GMT_MODIFIED" DATE,
  "MTL_OWNER_CODE" VARCHAR2(42 BYTE),
  "WAREHOUSE_CODE" VARCHAR2(42 BYTE),
  "ITEM_CODE" VARCHAR2(42 BYTE),
  "MANUFACTURER_LOT_NUM" VARCHAR2(42 BYTE),
  "SAMPLE_BY" VARCHAR2(42 BYTE),
  "TASK_RQC_ID" VARCHAR2(42 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."RQC_SAMPLE_ID" IS '抽检主键id(雪花)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."RCV_HEADER_ID" IS '收货单头id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."RCV_LINE_ID" IS '收货行id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."RQC_LINE_ID" IS '质检行id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."RQC_HEADER_ID" IS '质检头id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."ENTERPRISE_ID" IS '企业id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."MTL_OWNER_ID" IS '货主id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."WAREHOUSE_ID" IS '仓库id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."SRC_LINE_ID" IS '来源行id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."SRC_HEADER_ID" IS '来源头id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."ASN_HEADER_ID" IS 'asn头id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."ASN_LINE_ID" IS 'asn行id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."ITEM_ID" IS '商品id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."BATCH_ID" IS '批次id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."PIECE_QTY" IS '商品最小单位总数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."ODD_CASE_QTY" IS '整件数(包装单位)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."ODD_PIECE_QTY" IS '零散数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."QC_ODD_CASE_QTY" IS '抽样整件数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."QC_ODD_PIECE_QTY" IS '抽样零散数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."QC_ODD_CASE_ACT_QTY" IS '抽样实际整件数';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."QC_ODD_PIECE_ACT_QTY" IS '抽检实际零散';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."REMARK" IS '备注说明';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."SAMPLE_DATE" IS '抽样时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."CREATOR" IS '创建者id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."CREATOR_NAME" IS '创建者名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."GMT_CREATE" IS '创建时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."MODIFIER" IS '更新者id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."MODIFIER_NAME" IS '更新者名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."GMT_MODIFIED" IS '更新时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."MTL_OWNER_CODE" IS '货主编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."WAREHOUSE_CODE" IS '仓库编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."ITEM_CODE" IS '商品编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."MANUFACTURER_LOT_NUM" IS '商品批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."SAMPLE_BY" IS '抽样人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE"."TASK_RQC_ID" IS '质检任务id(唯一键)';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE" IS '质检抽样表';

-- ----------------------------
-- Table structure for WMS_IN_RQC_ST
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST" (
  "RQC_ST_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE),
  "MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE),
  "VENDOR_ID" VARCHAR2(32 BYTE),
  "ST_NAME" VARCHAR2(50 BYTE),
  "ST_NUM" VARCHAR2(20 BYTE),
  "REMARK" VARCHAR2(255 BYTE),
  "STATUS" VARCHAR2(10 BYTE),
  "EN_REGEXP" VARCHAR2(255 BYTE),
  "OC_REGEXP" VARCHAR2(255 BYTE),
  "WH_REGEXP" VARCHAR2(255 BYTE),
  "REGEXP_DES" VARCHAR2(255 BYTE),
  "GMT_CREATE" DATE,
  "CREATOR" VARCHAR2(32 BYTE),
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE),
  "ITEM_CODE" VARCHAR2(32 BYTE),
  "ITEM_NAME" VARCHAR2(255 BYTE),
  "ITEM_CATEGORY_CODE" VARCHAR2(32 BYTE),
  "ST_TYPE" CHAR(2 BYTE),
  "ATTRIBUTE1" VARCHAR2(64 BYTE),
  "ATTRIBUTE2" VARCHAR2(64 BYTE),
  "ATTRIBUTE3" VARCHAR2(64 BYTE),
  "BILL_TYPE" VARCHAR2(2 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."RQC_ST_ID" IS '质检策略主键id(雪花)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."ENTERPRISE_ID" IS '企业id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."MTL_OWNER_ID" IS '货主id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."WAREHOUSE_ID" IS '仓库id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."VENDOR_ID" IS '供应商id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."ST_NAME" IS '策略名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."ST_NUM" IS '策略编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."REMARK" IS '备注说明';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."STATUS" IS '状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."EN_REGEXP" IS '企业正则表达式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."OC_REGEXP" IS '货主正则';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."WH_REGEXP" IS '仓库正则';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."REGEXP_DES" IS '正则规则说明';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."ITEM_ID" IS '商品id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."ITEM_CODE" IS '商品编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."ITEM_NAME" IS '商品名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."ITEM_CATEGORY_CODE" IS '商品大类编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."ST_TYPE" IS '策略类型(0通用;1非通用)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."ATTRIBUTE1" IS '备用字段1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."ATTRIBUTE2" IS '备用字段2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."ATTRIBUTE3" IS '备用字段3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST"."BILL_TYPE" IS '单据类型(入库)';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST" IS '质检策略表';

-- ----------------------------
-- Table structure for WMS_IN_RQC_ST_RULE
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE" (
  "RULE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RQC_ST_ID" VARCHAR2(32 BYTE) NOT NULL,
  "SEARCH_REGEXP" VARCHAR2(255 BYTE),
  "MATCH_REGEXP" VARCHAR2(255 BYTE),
  "SORT_INDEX" NUMBER,
  "REGEXP_DES" VARCHAR2(255 BYTE),
  "REMARK" VARCHAR2(255 BYTE),
  "STATUS" VARCHAR2(2 BYTE),
  "ENTERPRISE_ID" VARCHAR2(32 BYTE),
  "GMT_CREATE" DATE,
  "CREATOR" VARCHAR2(32 BYTE),
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "ATTRIBUTE1" VARCHAR2(64 BYTE),
  "ATTRIBUTE2" VARCHAR2(64 BYTE),
  "ATTRIBUTE3" VARCHAR2(64 BYTE),
  "RULE_NAME" VARCHAR2(64 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE"."RULE_ID" IS '质检规则主键id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE"."RQC_ST_ID" IS '质检策略id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE"."SEARCH_REGEXP" IS '查询条件表达式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE"."MATCH_REGEXP" IS '匹配表达式';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE"."SORT_INDEX" IS '规则排序';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE"."REGEXP_DES" IS '规则说明';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE"."REMARK" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE"."STATUS" IS '状态(0否1是)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE"."ATTRIBUTE1" IS '备用字段1';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE"."ATTRIBUTE2" IS '备用字段2';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE"."ATTRIBUTE3" IS '备用字段3';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE"."RULE_NAME" IS '抽检规则名称';

-- ----------------------------
-- Table structure for WMS_IN_TASK_EXCEPTION_DETAIL
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL" (
  "TASK_EXCEPTION_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE),
  "MTL_OWNER_ID" VARCHAR2(32 BYTE) NOT NULL,
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_LINE_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE) NOT NULL,
  "QTY" NUMBER(30,4) NOT NULL,
  "UOM" VARCHAR2(32 BYTE) NOT NULL,
  "CONVERSION_RATE" NUMBER(14,4) NOT NULL,
  "PIECE_QTY" NUMBER(30,4) NOT NULL,
  "BATCH_ID" VARCHAR2(32 BYTE),
  "BATCH_NUM" VARCHAR2(32 BYTE),
  "MANUFACTURER_LOT_NUM" VARCHAR2(32 BYTE),
  "VENDOR_BATCH_NUM" VARCHAR2(32 BYTE),
  "ACTIVE_FLAG" CHAR(1 BYTE) NOT NULL,
  "REMAIN_QTY" NUMBER(30,4),
  "STATUS" VARCHAR2(10 BYTE) DEFAULT 1,
  "SEGMENT1" VARCHAR2(60 BYTE) DEFAULT NULL,
  "SEGMENT2" VARCHAR2(60 BYTE),
  "ATTRIBUTE1" VARCHAR2(240 BYTE),
  "ATTRIBUTE2" VARCHAR2(240 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE,
  "CREATOR" VARCHAR2(32 BYTE),
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE,
  "MODIFIER" VARCHAR2(32 BYTE),
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "QC_STATUS" VARCHAR2(2 BYTE),
  "RESULT" VARCHAR2(10 BYTE),
  "REASON" VARCHAR2(100 BYTE),
  "COMMENTS" VARCHAR2(60 BYTE),
  "EXECUTOR" VARCHAR2(60 BYTE),
  "CONTAINER_CODE" VARCHAR2(32 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(32 BYTE),
  "NODE_TYPE" VARCHAR2(10 BYTE) NOT NULL,
  "DATA_VERSION" NUMBER(10,0) DEFAULT 0,
  "NODE_TASK_ID" VARCHAR2(32 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."TASK_EXCEPTION_ID" IS 'ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."MTL_OWNER_ID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."SRC_HEADER_ID" IS '来源单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."SRC_LINE_ID" IS '来源单行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."ASN_HEADER_ID" IS 'ASN头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."ASN_LINE_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."QTY" IS '数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."PIECE_QTY" IS '单品数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."BATCH_ID" IS '批次ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."MANUFACTURER_LOT_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."VENDOR_BATCH_NUM" IS '供应商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."ACTIVE_FLAG" IS '是否允许作业标识0否1是';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."REMAIN_QTY" IS '余量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."STATUS" IS '状态(0不可/1可执行)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."SEGMENT1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."SEGMENT2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."ATTRIBUTE1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."ATTRIBUTE2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."QC_STATUS" IS '状态（初始/确认）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."RESULT" IS '结论';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."REASON" IS '原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."COMMENTS" IS '备注,错误原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."EXECUTOR" IS '执行者';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."CONTAINER_CODE" IS '容器编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."GOODS_CASE_CODE" IS '货格编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."NODE_TYPE" IS '任务节点（10收货错误/20质检错误/30复检/40上架错误）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."DATA_VERSION" IS '数据版本号从0开始';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL"."NODE_TASK_ID" IS '错误节点的任务id';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL" IS '收货异常任务池';

-- ----------------------------
-- Table structure for WMS_IN_TASK_HOSTED_DETAIL
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" (
  "TASK_HOSTED_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_LINE_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE),
  "QTY" NUMBER(30,4),
  "UOM" VARCHAR2(30 BYTE) NOT NULL,
  "CONVERSION_RATE" NUMBER(14,4) NOT NULL,
  "PIECE_QTY" NUMBER(30,4) NOT NULL,
  "BATCH_ID" VARCHAR2(32 BYTE),
  "BATCH_NUM" VARCHAR2(32 BYTE),
  "VENDOR_BATCH_NUM" VARCHAR2(32 BYTE),
  "ACTIVE_FLAG" CHAR(1 BYTE) NOT NULL,
  "REMAIN_QTY" NUMBER(30,4),
  "COMMENTS" VARCHAR2(60 BYTE),
  "RESULT" VARCHAR2(10 BYTE),
  "REASON" VARCHAR2(100 BYTE),
  "MANUFACTURER_BATCH_NUM" VARCHAR2(30 BYTE),
  "EXECUTOR" VARCHAR2(60 BYTE),
  "CONTAINER_CODE" VARCHAR2(32 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(32 BYTE),
  "STATUS" VARCHAR2(10 BYTE),
  "SEGMENT1" VARCHAR2(60 BYTE) DEFAULT NULL,
  "SEGMENT2" VARCHAR2(60 BYTE),
  "ATTRIBUTE1" VARCHAR2(240 BYTE),
  "ATTRIBUTE2" VARCHAR2(240 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(32 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(32 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "TASK_RECHECK_ID" VARCHAR2(32 BYTE) DEFAULT '',
  "LOCATOR_ID" VARCHAR2(32 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."TASK_HOSTED_ID" IS 'ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."MTL_OWNER_ID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."SRC_HEADER_ID" IS '来源单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."SRC_LINE_ID" IS '来源单行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."ASN_HEADER_ID" IS 'ASN头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."ASN_LINE_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."QTY" IS '数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."PIECE_QTY" IS '单品数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."BATCH_ID" IS '批次ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."VENDOR_BATCH_NUM" IS '批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."ACTIVE_FLAG" IS '是否允许作业标识';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."REMAIN_QTY" IS '余量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."COMMENTS" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."RESULT" IS '结论';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."REASON" IS '原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."MANUFACTURER_BATCH_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."EXECUTOR" IS '执行者';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."CONTAINER_CODE" IS '容器编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."GOODS_CASE_CODE" IS '货格编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."STATUS" IS '状态 10:收货代管入库11:收货代管出库12:验收代管入库13:验收代管出库';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."SEGMENT1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."SEGMENT2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."ATTRIBUTE1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."ATTRIBUTE2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."TASK_RECHECK_ID" IS '复检任务id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL"."LOCATOR_ID" IS '库位id';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" IS '代管任务池';

-- ----------------------------
-- Table structure for WMS_IN_TASK_INSTOCK_DETAIL
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" (
  "TASK_INBOUND_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_LINE_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE),
  "QTY" NUMBER(30,4),
  "UOM" VARCHAR2(32 BYTE) NOT NULL,
  "CONVERSION_RATE" NUMBER(14,4) NOT NULL,
  "PIECE_QTY" NUMBER(30,4) NOT NULL,
  "BATCH_ID" VARCHAR2(32 BYTE),
  "BATCH_NUM" VARCHAR2(32 BYTE),
  "VENDOR_BATCH_NUM" VARCHAR2(32 BYTE),
  "ACTIVE_FLAG" CHAR(1 BYTE) NOT NULL,
  "REMAIN_QTY" NUMBER(30,4),
  "COMMENTS" VARCHAR2(60 BYTE),
  "RESULT" VARCHAR2(10 BYTE),
  "REASON" VARCHAR2(100 BYTE),
  "TASK_TYPE" CHAR(10 BYTE),
  "MANUFACTURER_LOT_NUM" VARCHAR2(32 BYTE),
  "DATA_SRC_TYPE" VARCHAR2(32 BYTE),
  "EXECUTOR" VARCHAR2(60 BYTE),
  "CONTAINER_CODE" VARCHAR2(32 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(32 BYTE),
  "STATUS" VARCHAR2(10 BYTE) DEFAULT '1',
  "SEGMENT1" VARCHAR2(60 BYTE) DEFAULT NULL,
  "SEGMENT2" VARCHAR2(60 BYTE),
  "ATTRIBUTE1" VARCHAR2(240 BYTE),
  "ATTRIBUTE2" VARCHAR2(240 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(32 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(32 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "SPILTER_NAME" VARCHAR2(32 BYTE),
  "IS_SPILT" NUMBER(10,0) DEFAULT 0,
  "WH_LOCATOR_ID" VARCHAR2(32 BYTE),
  "DATA_VERSION" NUMBER(12,0) DEFAULT 0,
  "IS_LOCK" NUMBER(2,0) DEFAULT 0,
  "WH_AREA_CATEGORY_CODE" VARCHAR2(32 BYTE),
  "WH_AREA_CATEGORY_NAME" VARCHAR2(120 BYTE),
  "WH_LOCATOR_CODE" VARCHAR2(32 BYTE),
  "WH_LOCATOR_NAME" VARCHAR2(120 BYTE),
  "BLDG_CODE" VARCHAR2(32 BYTE),
  "WH_AREA_CODE" VARCHAR2(32 BYTE),
  "WH_AREA_CATEGORY_ID" VARCHAR2(32 BYTE),
  "RQC_LINE_ID" VARCHAR2(32 BYTE),
  "BLDG_ID" VARCHAR2(32 BYTE),
  "INVENTORY_STATUS" VARCHAR2(32 BYTE),
  "INSTOCK_LABEL" VARCHAR2(42 BYTE),
  "RQC_HEADER_ID" VARCHAR2(42 BYTE),
  "LOCATOR_FLOOR_NUM" NUMBER(4,0),
  "REF_BILL_ID" VARCHAR2(42 BYTE),
  "REF_TYPE" NUMBER(2,0),
  "REF_LINE_ID" VARCHAR2(42 BYTE),
  "REF_BILL_NO" VARCHAR2(42 BYTE),
  "SECOND_STATUS" VARCHAR2(64 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."TASK_INBOUND_ID" IS 'ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."MTL_OWNER_ID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."SRC_HEADER_ID" IS '来源单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."SRC_LINE_ID" IS '来源单行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."ASN_HEADER_ID" IS 'ASN头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."ASN_LINE_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."QTY" IS '包装数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."PIECE_QTY" IS '单品数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."BATCH_ID" IS '批次ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."VENDOR_BATCH_NUM" IS '批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."ACTIVE_FLAG" IS '是否允许作业标识';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."REMAIN_QTY" IS '余量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."COMMENTS" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."RESULT" IS '结论（0合格/1不合格/2隔离）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."REASON" IS '原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."TASK_TYPE" IS '任务类型（收货/移库/补货）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."MANUFACTURER_LOT_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."DATA_SRC_TYPE" IS '数据生成方式（系统自动/人工）部分类型的单据自动生成质检单';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."EXECUTOR" IS '执行者';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."CONTAINER_CODE" IS '容器编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."GOODS_CASE_CODE" IS '货格编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."STATUS" IS '状态(0不可用1可用,默认1)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."SEGMENT1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."SEGMENT2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."ATTRIBUTE1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."ATTRIBUTE2" IS '预留字段(推荐货位拣货方式)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."SPILTER_NAME" IS '拆分者名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."IS_SPILT" IS '是否正在拆分(0否1是)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."WH_LOCATOR_ID" IS '库位id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."DATA_VERSION" IS '数据版本号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."IS_LOCK" IS '数据是否锁定(0否1是拆分/异常处理并发)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."WH_AREA_CATEGORY_CODE" IS '库别code';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."WH_AREA_CATEGORY_NAME" IS '库别名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."WH_LOCATOR_CODE" IS '库位编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."WH_LOCATOR_NAME" IS '库位名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."BLDG_CODE" IS '建筑物编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."WH_AREA_CODE" IS '库区编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."WH_AREA_CATEGORY_ID" IS '库别id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."RQC_LINE_ID" IS '质检明细行id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."BLDG_ID" IS '建筑物id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."INVENTORY_STATUS" IS '库存状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."INSTOCK_LABEL" IS '上架标签';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."RQC_HEADER_ID" IS '质检单头id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."LOCATOR_FLOOR_NUM" IS '货位所在楼层(冗余)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."REF_BILL_ID" IS '操作来源单(头)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."REF_TYPE" IS '操作来源单类型 0:收货1:质检2:复检';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."REF_LINE_ID" IS '操作来源单行(明细)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."REF_BILL_NO" IS '操作来源单编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL"."SECOND_STATUS" IS '货主关联库存状态id&code链接符号&';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" IS '上架任务池
合格/不合格的都需要上架';

-- ----------------------------
-- Table structure for WMS_IN_TASK_PENDING_DETAIL
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" (
  "TASK_PENDING_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_LINE_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE),
  "QTY" NUMBER(30,4),
  "UOM" VARCHAR2(32 BYTE) NOT NULL,
  "CONVERSION_RATE" NUMBER(14,4) NOT NULL,
  "PIECE_QTY" NUMBER(30,4) NOT NULL,
  "BATCH_ID" VARCHAR2(32 BYTE),
  "BATCH_NUM" VARCHAR2(32 BYTE),
  "VENDOR_BATCH_NUM" VARCHAR2(32 BYTE),
  "ACTIVE_FLAG" CHAR(1 BYTE) NOT NULL,
  "REMAIN_QTY" NUMBER(30,4),
  "COMMENTS" VARCHAR2(60 BYTE),
  "RESULT" VARCHAR2(10 BYTE),
  "REASON" VARCHAR2(100 BYTE),
  "MANUFACTURER_BATCH_NUM" VARCHAR2(32 BYTE),
  "EXECUTOR" VARCHAR2(60 BYTE),
  "CONTAINER_CODE" VARCHAR2(32 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(32 BYTE),
  "STATUS" VARCHAR2(10 BYTE),
  "SEGMENT1" VARCHAR2(60 BYTE) DEFAULT NULL,
  "SEGMENT2" VARCHAR2(60 BYTE),
  "ATTRIBUTE1" VARCHAR2(240 BYTE),
  "ATTRIBUTE2" VARCHAR2(240 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(32 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(32 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(32 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."TASK_PENDING_ID" IS 'ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."MTL_OWNER_ID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."SRC_HEADER_ID" IS '来源单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."SRC_LINE_ID" IS '来源单行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."ASN_HEADER_ID" IS 'ASN头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."ASN_LINE_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."QTY" IS '数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."PIECE_QTY" IS '单品数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."BATCH_ID" IS '批次ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."VENDOR_BATCH_NUM" IS '批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."ACTIVE_FLAG" IS '是否允许作业标识';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."REMAIN_QTY" IS '余量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."COMMENTS" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."RESULT" IS '结论';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."REASON" IS '原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."MANUFACTURER_BATCH_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."EXECUTOR" IS '执行者';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."CONTAINER_CODE" IS '容器编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."GOODS_CASE_CODE" IS '货格编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."STATUS" IS '状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."SEGMENT1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."SEGMENT2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."ATTRIBUTE1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."ATTRIBUTE2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" IS '待处理任务池 (预留)';

-- ----------------------------
-- Table structure for WMS_IN_TASK_QC_DETAIL
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" (
  "TASK_RQC_ID" VARCHAR2(32 BYTE) DEFAULT NULL NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_LINE_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE),
  "QTY" NUMBER(30,4),
  "UOM" VARCHAR2(32 BYTE) NOT NULL,
  "CONVERSION_RATE" NUMBER(14,4) NOT NULL,
  "PIECE_QTY" NUMBER(30,4) NOT NULL,
  "BATCH_ID" VARCHAR2(32 BYTE),
  "BATCH_NUM" VARCHAR2(32 BYTE),
  "VENDOR_BATCH_NUM" VARCHAR2(32 BYTE),
  "ACTIVE_FLAG" CHAR(1 BYTE),
  "REMAIN_QTY" NUMBER(30,4),
  "COMMENTS" VARCHAR2(60 BYTE),
  "RESULT" VARCHAR2(10 BYTE),
  "REASON" VARCHAR2(10 BYTE),
  "MANUFACTURER_LOT_NUM" VARCHAR2(30 BYTE),
  "EXECUTOR" VARCHAR2(60 BYTE),
  "CONTAINER_CODE" VARCHAR2(32 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(32 BYTE),
  "STATUS" VARCHAR2(10 BYTE) DEFAULT '1',
  "SEGMENT1" VARCHAR2(60 BYTE) DEFAULT NULL,
  "SEGMENT2" VARCHAR2(60 BYTE),
  "ATTRIBUTE1" VARCHAR2(240 BYTE),
  "ATTRIBUTE2" VARCHAR2(240 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(32 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(32 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "TIMES" NUMBER(2,0) DEFAULT 0,
  "ITEM_HEALTH_IS_DOUBLE" NUMBER(2,0) DEFAULT 0,
  "DATA_VERSION" NUMBER(12,0) DEFAULT 0,
  "IS_LOCK" NUMBER(2,0) DEFAULT 0,
  "SPILTER_NAME" VARCHAR2(42 BYTE),
  "IS_SPILT" NUMBER(2,0) DEFAULT 0,
  "IS_RECHECKED" NUMBER(2,0) DEFAULT 0,
  "IS_SPOT_CHECK" NUMBER(2,0) DEFAULT 0,
  "IS_SUPERVISE" NUMBER(2,0) DEFAULT 0,
  "REF_BILL_ID" VARCHAR2(42 BYTE),
  "REF_TYPE" NUMBER(2,0),
  "REF_LINE_ID" VARCHAR2(42 BYTE),
  "REF_BILL_NO" VARCHAR2(42 BYTE),
  "PRE_NODE_LINE_ID" VARCHAR2(42 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."TASK_RQC_ID" IS 'ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."MTL_OWNER_ID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."SRC_HEADER_ID" IS '来源单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."SRC_LINE_ID" IS '来源单行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."ASN_HEADER_ID" IS 'ASN头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."ASN_LINE_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."QTY" IS '数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."PIECE_QTY" IS '单品数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."BATCH_ID" IS '批次ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."VENDOR_BATCH_NUM" IS '批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."ACTIVE_FLAG" IS '是否允许作业标识(0否1是)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."REMAIN_QTY" IS '余量(作废)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."COMMENTS" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."RESULT" IS '结论(上一次检查)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."REASON" IS '原因(上一次检查)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."MANUFACTURER_LOT_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."EXECUTOR" IS '执行者';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."CONTAINER_CODE" IS '容器编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."GOODS_CASE_CODE" IS '货格编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."STATUS" IS '状态(0已完成1未完成)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."SEGMENT1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."SEGMENT2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."ATTRIBUTE1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."ATTRIBUTE2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."TIMES" IS '第几次质检';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."ITEM_HEALTH_IS_DOUBLE" IS '是否双人质检(0否1是默认0)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."DATA_VERSION" IS '版本';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."IS_LOCK" IS '数据是否锁定(0否1是拆分/异常处理并发)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."SPILTER_NAME" IS '拆分人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."IS_SPILT" IS '是否拆分(0否1是)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."IS_RECHECKED" IS '是否来源复检(0否1是,默认0)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."IS_SPOT_CHECK" IS '是否抽检过(0否1是默认0)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."IS_SUPERVISE" IS '是否监管码扫描(0否1是默认0)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."REF_BILL_ID" IS '操作来源单(头)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."REF_TYPE" IS '操作来源单类型 0:收货1:质检2:复检';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."REF_LINE_ID" IS '操作来源单行(明细)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."REF_BILL_NO" IS '操作来源单编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL"."PRE_NODE_LINE_ID" IS '上一节点行id(用于双人质检记录上一次质检的行id)';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" IS '质检任务池';

-- ----------------------------
-- Table structure for WMS_IN_TASK_QC_RECHECK_DETAIL
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" (
  "TASK_RECHECK_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "MTL_OWNER_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "RCV_HEADER_ID" VARCHAR2(32 BYTE),
  "RCV_LINE_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE),
  "QTY" NUMBER(30,4),
  "UOM" VARCHAR2(32 BYTE) NOT NULL,
  "CONVERSION_RATE" NUMBER(14,4) NOT NULL,
  "PIECE_QTY" NUMBER(30,4) NOT NULL,
  "BATCH_ID" VARCHAR2(32 BYTE),
  "BATCH_NUM" VARCHAR2(32 BYTE),
  "VENDOR_BATCH_NUM" VARCHAR2(32 BYTE),
  "ACTIVE_FLAG" CHAR(1 BYTE) DEFAULT '1'  NOT NULL,
  "REMAIN_QTY" NUMBER(30,4),
  "TIMES" NUMBER(2,0),
  "COMMENTS" VARCHAR2(60 BYTE),
  "RESULT" VARCHAR2(32 BYTE),
  "REASON" VARCHAR2(100 BYTE),
  "MANUFACTURER_LOT_NUM" VARCHAR2(32 BYTE),
  "EXECUTOR" VARCHAR2(60 BYTE),
  "CONTAINER_CODE" VARCHAR2(32 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(32 BYTE),
  "STATUS" VARCHAR2(10 BYTE) DEFAULT '1',
  "SEGMENT1" VARCHAR2(60 BYTE) DEFAULT NULL,
  "SEGMENT2" VARCHAR2(60 BYTE),
  "ATTRIBUTE1" VARCHAR2(240 BYTE),
  "ATTRIBUTE2" VARCHAR2(240 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(32 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(32 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "DATA_VERSION" NUMBER(12,0) DEFAULT 0,
  "ITEM_HEALTH_IS_DOUBLE" NUMBER(2,0),
  "REF_BILL_ID" VARCHAR2(42 BYTE),
  "REF_TYPE" NUMBER(2,0),
  "REF_LINE_ID" VARCHAR2(42 BYTE),
  "REF_BILL_NO" VARCHAR2(42 BYTE),
  "PRE_NODE_LINE_ID" VARCHAR2(42 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."TASK_RECHECK_ID" IS 'ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."MTL_OWNER_ID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."SRC_HEADER_ID" IS '来源单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."SRC_LINE_ID" IS '来源单行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."ASN_HEADER_ID" IS 'ASN头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."ASN_LINE_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."QTY" IS '数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."PIECE_QTY" IS '单品数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."BATCH_ID" IS '批次ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."VENDOR_BATCH_NUM" IS '批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."ACTIVE_FLAG" IS '是否允许作业标识(默认1)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."REMAIN_QTY" IS '余量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."TIMES" IS '第几次复检';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."COMMENTS" IS '备注';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."RESULT" IS '结论(上一次检查)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."REASON" IS '原因(上一次检查)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."MANUFACTURER_LOT_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."EXECUTOR" IS '执行者';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."CONTAINER_CODE" IS '容器编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."GOODS_CASE_CODE" IS '货格编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."STATUS" IS '状态(0已完成,1未完成)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."SEGMENT1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."SEGMENT2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."ATTRIBUTE1" IS '预留字段:1-收货待处理,2-质检待处理';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."ATTRIBUTE2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."DATA_VERSION" IS '版本';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."ITEM_HEALTH_IS_DOUBLE" IS '是否双人质检(0否1是默认0)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."REF_BILL_ID" IS '操作来源单(头)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."REF_TYPE" IS '操作来源单类型 0:收货1:质检2:复检3:收货待处理4:质检待处理';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."REF_LINE_ID" IS '操作来源单行(明细)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."REF_BILL_NO" IS '操作来源单编号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL"."PRE_NODE_LINE_ID" IS '上一节点行id(用于记录上一次复检的行id)';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" IS '复检任务池';

-- ----------------------------
-- Table structure for WMS_IN_TASK_RCV_DETAIL
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" (
  "TASK_RCV_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "SOURCE_BILL_TYP" VARCHAR2(32 BYTE),
  "SOURCE_HEADER_ID" VARCHAR2(32 BYTE),
  "SOURCE_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "ITEM_ID" VARCHAR2(32 BYTE),
  "QTY" NUMBER(30,4),
  "UOM" VARCHAR2(32 BYTE) NOT NULL,
  "CONVERSION_RATE" NUMBER(14,4) NOT NULL,
  "PIECE_QTY" NUMBER(30,4) NOT NULL,
  "BATCH_ID" VARCHAR2(32 BYTE),
  "BATCH_NUM" VARCHAR2(32 BYTE),
  "VENDOR_BATCH_NUM" VARCHAR2(32 BYTE),
  "MANUFACTURER_BATCH_NUM" VARCHAR2(32 BYTE),
  "ACTIVE_FLAG" CHAR(1 BYTE) NOT NULL,
  "REMAIN_QTY" NUMBER(30,4),
  "RESULT" CHAR(10 BYTE),
  "REASON" CHAR(10 BYTE),
  "EXECUTOR" VARCHAR2(60 BYTE),
  "STATUS" VARCHAR2(10 BYTE),
  "SEGMENT1" VARCHAR2(60 BYTE) DEFAULT NULL,
  "SEGMENT2" VARCHAR2(60 BYTE),
  "ATTRIBUTE1" VARCHAR2(240 BYTE),
  "ATTRIBUTE2" VARCHAR2(240 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(32 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(32 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(32 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."TASK_RCV_ID" IS 'ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."SOURCE_BILL_TYP" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."SOURCE_HEADER_ID" IS '来源单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."SOURCE_LINE_ID" IS '来源单行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."ASN_HEADER_ID" IS 'ASN头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."ASN_LINE_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."QTY" IS '数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."PIECE_QTY" IS '单品数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."BATCH_ID" IS '批次ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."VENDOR_BATCH_NUM" IS '批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."MANUFACTURER_BATCH_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."ACTIVE_FLAG" IS '是否允许作业标识';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."REMAIN_QTY" IS '余量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."RESULT" IS '结论';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."REASON" IS '原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."EXECUTOR" IS '执行者';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."STATUS" IS '状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."SEGMENT1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."SEGMENT2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."ATTRIBUTE1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."ATTRIBUTE2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" IS '收货任务池（暂时不用，预留）';

-- ----------------------------
-- Table structure for WMS_IN_TASK_REJECTED_DETAIL
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" (
  "TASK_REJECTED_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "WAREHOUSE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "SRC_BILL_TYPE" VARCHAR2(32 BYTE),
  "SRC_HEADER_ID" VARCHAR2(32 BYTE),
  "SRC_LINE_ID" VARCHAR2(32 BYTE),
  "ASN_HEADER_ID" VARCHAR2(32 BYTE),
  "ASN_LINE_ID" VARCHAR2(32 BYTE),
  "RCV_HEADER_ID" VARCHAR2(32 BYTE) NOT NULL,
  "RCV_LINE_ID" VARCHAR2(32 BYTE) NOT NULL,
  "ITEM_ID" VARCHAR2(32 BYTE),
  "QTY" NUMBER(30,4) DEFAULT NULL,
  "UOM" VARCHAR2(32 BYTE) NOT NULL,
  "CONVERSION_RATE" NUMBER(14,4) NOT NULL,
  "PIECE_QTY" NUMBER(30,4) NOT NULL,
  "BATCH_ID" VARCHAR2(32 BYTE),
  "BATCH_NUM" VARCHAR2(32 BYTE),
  "VENDOR_BATCH_NUM" VARCHAR2(32 BYTE),
  "ACTIVE_FLAG" CHAR(1 BYTE),
  "REMAIN_QTY" NUMBER(30,4),
  "RESULT" VARCHAR2(10 BYTE),
  "REASON" VARCHAR2(100 BYTE),
  "MANUFACTURER_LOT_NUM" VARCHAR2(30 BYTE),
  "CONTAINER_CODE" VARCHAR2(32 BYTE),
  "GOODS_CASE_CODE" VARCHAR2(32 BYTE),
  "EXECUTOR" VARCHAR2(60 BYTE),
  "STATUS" VARCHAR2(10 BYTE),
  "SEGMENT1" VARCHAR2(60 BYTE) DEFAULT NULL,
  "SEGMENT2" VARCHAR2(60 BYTE),
  "ATTRIBUTE1" VARCHAR2(240 BYTE),
  "ATTRIBUTE2" VARCHAR2(240 BYTE),
  "GMT_CREATE" DATE DEFAULT SYSDATE  NOT NULL,
  "CREATOR" VARCHAR2(32 BYTE) NOT NULL,
  "CREATOR_NAME" VARCHAR2(32 BYTE),
  "GMT_MODIFIED" DATE DEFAULT SYSDATE  NOT NULL,
  "MODIFIER" VARCHAR2(32 BYTE) NOT NULL,
  "MODIFIER_NAME" VARCHAR2(32 BYTE),
  "MTL_OWNER_ID" VARCHAR2(32 BYTE) DEFAULT '',
  "DATA_VERSION" NUMBER(3,0) DEFAULT 0,
  "REF_BILL_ID" VARCHAR2(42 BYTE),
  "REF_TYPE" NUMBER(2,0),
  "REF_LINE_ID" VARCHAR2(42 BYTE),
  "REF_BILL_NO" VARCHAR2(42 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."TASK_REJECTED_ID" IS 'ID(主键雪花id)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."WAREHOUSE_ID" IS '仓库ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."SRC_BILL_TYPE" IS '来源单类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."SRC_HEADER_ID" IS '来源单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."SRC_LINE_ID" IS '来源单行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."ASN_HEADER_ID" IS 'ASN头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."ASN_LINE_ID" IS 'ASN行ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."RCV_HEADER_ID" IS '收货单头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."RCV_LINE_ID" IS '收货行头ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."QTY" IS '数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."UOM" IS '包装单位';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."CONVERSION_RATE" IS '包装含量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."PIECE_QTY" IS '单品数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."BATCH_ID" IS '批次ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."BATCH_NUM" IS '批次号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."VENDOR_BATCH_NUM" IS '批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."ACTIVE_FLAG" IS '是否允许作业标识';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."REMAIN_QTY" IS '余量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."RESULT" IS '结论';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."REASON" IS '原因';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."MANUFACTURER_LOT_NUM" IS '生产商批号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."CONTAINER_CODE" IS '容器编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."GOODS_CASE_CODE" IS '货格编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."EXECUTOR" IS '执行者';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."STATUS" IS '状态';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."SEGMENT1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."SEGMENT2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."ATTRIBUTE1" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."ATTRIBUTE2" IS '预留字段';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."CREATOR_NAME" IS 'created_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."MODIFIER_NAME" IS 'last_updated_name';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."MTL_OWNER_ID" IS '货主id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."DATA_VERSION" IS '数据版本号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."REF_BILL_ID" IS '操作来源单(头)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."REF_TYPE" IS '操作来源单类型 0:收货1:质检2:复检';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."REF_LINE_ID" IS '操作来源单行(明细)id';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL"."REF_BILL_NO" IS '操作来源单编号';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" IS '拒收任务池';

-- ----------------------------
-- Table structure for WMS_SUPERVISION_CODE
-- ----------------------------

CREATE TABLE "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE" (
  "ID" VARCHAR2(30 BYTE) NOT NULL,
  "ENTERPRISE_ID" VARCHAR2(30 BYTE),
  "WAREHOUSE_CODE" VARCHAR2(30 BYTE),
  "CARGO_OWNER_CODE" VARCHAR2(30 BYTE),
  "REF_BILL_ID" VARCHAR2(30 BYTE),
  "REF_BILL_LINE_ID" VARCHAR2(30 BYTE),
  "SUPERVISION_CODE" VARCHAR2(32 BYTE),
  "SCAN_NAME" VARCHAR2(100 BYTE),
  "SCAN_DATE" DATE,
  "COMPANY_CODE" VARCHAR2(120 BYTE),
  "UPLOAD_FLAG" VARCHAR2(2 BYTE) DEFAULT 'Y',
  "SUPERVISION_TYPE" NUMBER(9,0),
  "ITEM_CODE" VARCHAR2(32 BYTE),
  "PICK_TASK_NO" VARCHAR2(32 BYTE),
  "CODE_TYPE" NUMBER(9,0),
  "PACK_LEVEL" NUMBER(9,0),
  "MANUFACTURER_LOT_NUM" VARCHAR2(30 BYTE),
  "STATUS" NUMBER(9,0),
  "BILLNO" VARCHAR2(100 BYTE),
  "LINENO" VARCHAR2(100 BYTE),
  "BILL_TYPE" NUMBER(2,0),
  "STAGE" NUMBER(2,0),
  "ITEM_ID" VARCHAR2(30 BYTE),
  "ITEM_NAME" VARCHAR2(100 BYTE),
  "PRODUCTION_DATE" DATE,
  "EXPIRED_DATE" DATE,
  "PACK_SIZE" NUMBER(20,7),
  "CONTAINER_CODE" VARCHAR2(255 BYTE),
  "SUPPLIER_CODE" VARCHAR2(32 BYTE),
  "SHIPPER_CODE" VARCHAR2(128 BYTE),
  "PIECE_QTY" NUMBER(20,7),
  "LOCATOR_CODE" VARCHAR2(255 BYTE),
  "WH_AREA_CATEGORY_CODE" VARCHAR2(255 BYTE),
  "GMT_CREATE" DATE,
  "CREATOR" VARCHAR2(100 BYTE),
  "CREATOR_NAME" VARCHAR2(100 BYTE),
  "GMT_MODIFIED" DATE,
  "MODIFIER" VARCHAR2(100 BYTE),
  "MODIFIER_NAME" VARCHAR2(100 BYTE),
  "DC_ID" VARCHAR2(32 BYTE),
  "WAREHOUSE_ID" VARCHAR2(30 BYTE),
  "CARGO_OWNER_ID" VARCHAR2(30 BYTE),
  "UNLOCK" NUMBER(1,0),
  "LOCATOR_ID" VARCHAR2(255 BYTE),
  "SUPPLIER_ID" VARCHAR2(32 BYTE),
  "SHIPPER_ID" VARCHAR2(32 BYTE)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."ID" IS 'ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."ENTERPRISE_ID" IS '企业ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."WAREHOUSE_CODE" IS '仓库CODE';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."CARGO_OWNER_CODE" IS '【1.YEZ_ID,业主内码】货主CODE   ';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."REF_BILL_ID" IS '【2.RUCKD_NO? 入出库单号】上级单据ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."REF_BILL_LINE_ID" IS '【RUCKD_NO? 入出库单号】上级单据LINE ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."SUPERVISION_CODE" IS '【3.JIANG_CD,监管码】监管码/防串码/唯一码   ';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."SCAN_NAME" IS '【4.操作员名称，CAOZ_STAFF】';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."SCAN_DATE" IS '【5.操作日期，OPER_DATE】扫码时间';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."COMPANY_CODE" IS '【6.单位内码（供应商/客户的编码）,取供应商货主客户的编码】';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."UPLOAD_FLAG" IS '【7.是否上传，SHANGC_FLG】 是否上传';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."SUPERVISION_TYPE" IS '【8.监管类型 JIANG_TYPE】(业务类型 ；0购进入库， 1 销售退回 ，2 销售出库， 3 购进退出, 4 不合格，5 盘点)';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."ITEM_CODE" IS '【9.商品内码，SHANGP_ID】商品编号 ';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."PICK_TASK_NO" IS '【10.分配单编号(预留)】';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."CODE_TYPE" IS '【11.TIAOM_TYPE】条码类型（1:监管码  2：防串码  3：唯一码）【条码类型，TIAOM_TYPE】';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."PACK_LEVEL" IS '【12.BZLB】包装级别(0大包装，1中包装，2小包装)【包装类别，BZLB】';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."MANUFACTURER_LOT_NUM" IS '【13.批号 PHID】批号 ';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."STATUS" IS '【14.状态(预留)】（10：初始，20：已上传）';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."BILLNO" IS '【15.ERP单据编号(预留)流水号】
';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."LINENO" IS '【16.ERP细单行号(预留)行ID】
';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."BILL_TYPE" IS '单据类型';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."STAGE" IS '扫码阶段：0=入库质检 1=PC拣货 2=PC内复核 3=PC外复核 4=补录 5=PDA拣货 6=PDA内复核 7=PDA外复核';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."ITEM_ID" IS '商品ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."ITEM_NAME" IS '商品名称';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."PRODUCTION_DATE" IS '生成日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."EXPIRED_DATE" IS '有效期至';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."PACK_SIZE" IS '包装数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."CONTAINER_CODE" IS '容器CODE';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."SUPPLIER_CODE" IS '供应商编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."SHIPPER_CODE" IS '客户号';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."PIECE_QTY" IS '数量';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."LOCATOR_CODE" IS '货位CODE';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."WH_AREA_CATEGORY_CODE" IS '库别编码';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."GMT_CREATE" IS '创建日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."CREATOR" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."CREATOR_NAME" IS '创建人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."GMT_MODIFIED" IS '最后修改日期';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."MODIFIER" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."MODIFIER_NAME" IS '最后修改人';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."DC_ID" IS '仓配中心ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."WAREHOUSE_ID" IS '仓ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."CARGO_OWNER_ID" IS '货主ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."UNLOCK" IS '是否解锁：0=否 1=是';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."LOCATOR_ID" IS '货位ID';
COMMENT ON COLUMN "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE"."SHIPPER_ID" IS '收货单位(客户)id';
COMMENT ON TABLE "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE" IS '监管码/防窜码/唯一码记录表';

-- ----------------------------
-- Sequence structure for SEQ_JK_JKPZDY
-- ----------------------------
CREATE SEQUENCE "UPCLOUD_BIZ_INBOUND"."SEQ_JK_JKPZDY" MINVALUE 1 MAXVALUE 99999999 INCREMENT BY 1 CYCLE CACHE 10;

-- ----------------------------
-- Primary Key structure for table OMS_ASN_BILL_D
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" ADD CONSTRAINT "SYS_C00250752" PRIMARY KEY ("LINEID");

-- ----------------------------
-- Checks structure for table OMS_ASN_BILL_D
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" ADD CONSTRAINT "SYS_C00250400" CHECK ("LINEID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" ADD CONSTRAINT "SYS_C00250401" CHECK ("SEQNO" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" ADD CONSTRAINT "SYS_C00250402" CHECK ("BILLID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" ADD CONSTRAINT "SYS_C00250403" CHECK ("BILLNO" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" ADD CONSTRAINT "SYS_C00250404" CHECK ("BRANCHID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" ADD CONSTRAINT "SYS_C00250405" CHECK ("BRANCHCODE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" ADD CONSTRAINT "SYS_C00250406" CHECK ("CONSIGNORID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" ADD CONSTRAINT "SYS_C00250407" CHECK ("ITEMID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" ADD CONSTRAINT "SYS_C00250408" CHECK ("ITEMCODE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" ADD CONSTRAINT "SYS_C00250409" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" ADD CONSTRAINT "SYS_C00250410" CHECK ("CREATEBY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_D" ADD CONSTRAINT "SYS_C00250411" CHECK ("CREATEDATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table OMS_ASN_BILL_H
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H" ADD CONSTRAINT "SYS_C00250753" PRIMARY KEY ("BILLID");

-- ----------------------------
-- Checks structure for table OMS_ASN_BILL_H
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H" ADD CONSTRAINT "SYS_C00250390" CHECK ("BILLID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H" ADD CONSTRAINT "SYS_C00250391" CHECK ("BILLNO" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H" ADD CONSTRAINT "SYS_C00250392" CHECK ("BILLTYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H" ADD CONSTRAINT "SYS_C00250393" CHECK ("SHIPPER_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H" ADD CONSTRAINT "SYS_C00250394" CHECK ("SHIPPERID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H" ADD CONSTRAINT "SYS_C00250395" CHECK ("CONSIGNORID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H" ADD CONSTRAINT "SYS_C00250396" CHECK ("BRANCHID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H" ADD CONSTRAINT "SYS_C00250397" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H" ADD CONSTRAINT "SYS_C00250398" CHECK ("CREATEBY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."OMS_ASN_BILL_H" ADD CONSTRAINT "SYS_C00250399" CHECK ("CREATEDATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_EXCEPTION_HEADERS
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" ADD CONSTRAINT "SYS_C00175698" PRIMARY KEY ("EXCEPTION_HEADER_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_EXCEPTION_HEADERS
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" ADD CONSTRAINT "SYS_C00175692" CHECK ("EXCEPTION_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" ADD CONSTRAINT "SYS_C00175693" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" ADD CONSTRAINT "SYS_C00175694" CHECK ("LINE_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" ADD CONSTRAINT "SYS_C00175695" CHECK ("MTL_OWNER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" ADD CONSTRAINT "SYS_C00175696" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" ADD CONSTRAINT "SYS_C00175697" CHECK ("EXECUTOR_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" ADD CONSTRAINT "SYS_C00250630" CHECK ("EXCEPTION_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" ADD CONSTRAINT "SYS_C00250631" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" ADD CONSTRAINT "SYS_C00250632" CHECK ("MTL_OWNER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" ADD CONSTRAINT "SYS_C00250633" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_HEADERS" ADD CONSTRAINT "SYS_C00250634" CHECK ("EXECUTOR_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_EXCEPTION_LINES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LINES" ADD CONSTRAINT "SYS_C00175722" PRIMARY KEY ("EXCEPTION_LINE_ID");

-- ----------------------------
-- Primary Key structure for table WMS_IN_EXCEPTION_LOG
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG" ADD CONSTRAINT "SYS_C00175748" PRIMARY KEY ("EXCEPTION_LOG_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_EXCEPTION_LOG
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG" ADD CONSTRAINT "SYS_C00250620" CHECK ("EXCEPTION_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG" ADD CONSTRAINT "SYS_C00250621" CHECK ("EXCEPTION_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG" ADD CONSTRAINT "SYS_C00250622" CHECK ("RCV_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG" ADD CONSTRAINT "SYS_C00250623" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG" ADD CONSTRAINT "SYS_C00250624" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG" ADD CONSTRAINT "SYS_C00250625" CHECK ("MTL_OWNER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG" ADD CONSTRAINT "SYS_C00250626" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG" ADD CONSTRAINT "SYS_C00250627" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG" ADD CONSTRAINT "SYS_C00250628" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_EXCEPTION_LOG" ADD CONSTRAINT "SYS_C00250629" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_INTERFACE_RQC_BILL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175763" PRIMARY KEY ("INTERFACE_RQC_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_INTERFACE_RQC_BILL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175749" CHECK ("INTERFACE_RQC_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175750" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175751" CHECK ("MTL_OWNER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175752" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175753" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175754" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175755" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175756" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175757" CHECK ("CHECK_PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175758" CHECK ("ACTIVE_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175759" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175760" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175761" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00175762" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250606" CHECK ("INTERFACE_RQC_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250607" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250608" CHECK ("MTL_OWNER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250609" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250610" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250611" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250612" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250613" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250614" CHECK ("CHECK_PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250615" CHECK ("ACTIVE_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250616" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250617" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250618" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_INTERFACE_RQC_BILL" ADD CONSTRAINT "SYS_C00250619" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RCV_HEADERS
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184830" PRIMARY KEY ("RCV_HEADER_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RCV_HEADERS
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184796" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184797" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184798" CHECK ("MTL_OWNER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184799" CHECK ("AUTO_BILL_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184800" CHECK ("RCV_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184801" CHECK ("RCV_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184802" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184804" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184805" CHECK ("CASE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184806" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184807" CHECK ("ACCESS_LEVEL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184808" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184809" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184810" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184811" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184812" CHECK ("PRINT_COUNT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184813" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184814" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184815" CHECK ("MTL_OWNER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184816" CHECK ("AUTO_BILL_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184817" CHECK ("RCV_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184818" CHECK ("RCV_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184819" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184821" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184822" CHECK ("CASE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184823" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184824" CHECK ("ACCESS_LEVEL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184825" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184826" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184827" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00184828" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250591" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250592" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250593" CHECK ("MTL_OWNER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250594" CHECK ("AUTO_BILL_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250595" CHECK ("RCV_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250596" CHECK ("RCV_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250597" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250598" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250599" CHECK ("CASE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250600" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250601" CHECK ("ACCESS_LEVEL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250602" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250603" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250604" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS" ADD CONSTRAINT "SYS_C00250605" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RCV_HEADERS_PIC
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "PK_WMS_IN_RCV_HEADERS_PIC_PIC" PRIMARY KEY ("RCV_HEADER_PIC_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RCV_HEADERS_PIC
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00175787" CHECK ("RCV_HEADER_PIC_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00175788" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00175789" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00175790" CHECK ("PIC_FILENAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00175791" CHECK ("PIC_FILEURL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00175792" CHECK ("EXECUTOR_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00175793" CHECK ("EXECUTOR_USERID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00175794" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00175795" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00175796" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00175797" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00250580" CHECK ("RCV_HEADER_PIC_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00250581" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00250582" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00250583" CHECK ("PIC_FILENAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00250584" CHECK ("PIC_FILEURL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00250585" CHECK ("EXECUTOR_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00250586" CHECK ("EXECUTOR_USERID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00250587" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00250588" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00250589" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PIC" ADD CONSTRAINT "SYS_C00250590" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RCV_HEADERS_PROFILES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" ADD CONSTRAINT "SYS_C00175821" PRIMARY KEY ("RCV_HEADER_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RCV_HEADERS_PROFILES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" ADD CONSTRAINT "SYS_C00175799" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" ADD CONSTRAINT "SYS_C00175800" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" ADD CONSTRAINT "SYS_C00175801" CHECK ("TA_TI" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" ADD CONSTRAINT "SYS_C00175802" CHECK ("TA_TE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" ADD CONSTRAINT "SYS_C00175803" CHECK ("TA_TAX" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" ADD CONSTRAINT "SYS_C00175804" CHECK ("MTL_OWNER_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" ADD CONSTRAINT "SYS_C00175805" CHECK ("MTL_OWNER_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" ADD CONSTRAINT "SYS_C00175808" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" ADD CONSTRAINT "SYS_C00175809" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" ADD CONSTRAINT "SYS_C00175810" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_PROFILES" ADD CONSTRAINT "SYS_C00175811" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RCV_HEADERS_SRC_BILLS
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00179107" PRIMARY KEY ("RCV_HEADER_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RCV_HEADERS_SRC_BILLS
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00175813" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00175814" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00175815" CHECK ("RCV_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00175816" CHECK ("RCV_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00175817" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00175818" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00175819" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00175820" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00250572" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00250573" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00250574" CHECK ("RCV_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00250575" CHECK ("RCV_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00250576" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00250577" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00250578" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_HEADERS_SRC_BILLS" ADD CONSTRAINT "SYS_C00250579" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RCV_INSTOCK_LINES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00250863" PRIMARY KEY ("IN_BOUND_LINE_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RCV_INSTOCK_LINES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175822" CHECK ("IN_BOUND_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175823" CHECK ("LINE_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175825" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175826" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175827" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175829" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175830" CHECK ("ODD_CASE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175831" CHECK ("ODD_PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175832" CHECK ("BATCH_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175833" CHECK ("BATCH_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175834" CHECK ("BATCH_PRODUCTION_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175835" CHECK ("BATCH_EXPIRED_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175836" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175837" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175838" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175839" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175840" CHECK ("TASK_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175841" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00175842" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_INSTOCK_LINES" ADD CONSTRAINT "SYS_C00250571" CHECK ("TASK_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RCV_LINES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "PK_INV_RCV_LINES" PRIMARY KEY ("RCV_LINE_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RCV_LINES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175858" CHECK ("RCV_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175859" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175860" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175861" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175862" CHECK ("LINE_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175864" CHECK ("QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175865" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175866" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175867" CHECK ("ODD_CASE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175868" CHECK ("ODD_PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175869" CHECK ("BATCH_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175870" CHECK ("BATCH_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175871" CHECK ("BATCH_PRODUCTION_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175872" CHECK ("BATCH_EXPIRED_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175874" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175875" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175876" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00175877" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250557" CHECK ("RCV_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250558" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250559" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250560" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250561" CHECK ("LINE_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250562" CHECK ("QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250563" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250564" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250565" CHECK ("ODD_CASE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250566" CHECK ("ODD_PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250567" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250568" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250569" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES" ADD CONSTRAINT "SYS_C00250570" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RCV_LINES_PIC
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC" ADD CONSTRAINT "PK_WMS_IN_RCV_LINES_PIC" PRIMARY KEY ("RCV_HEADER_PIC_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RCV_LINES_PIC
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PIC" ADD CONSTRAINT "SYS_C00175843" CHECK ("RCV_HEADER_PIC_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RCV_LINES_PROFILES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175896" PRIMARY KEY ("RCV_LINE_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RCV_LINES_PROFILES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175879" CHECK ("RCV_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175880" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175881" CHECK ("LINE_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175882" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175883" CHECK ("ITEM_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175885" CHECK ("PIECE_PRICE_TI" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175886" CHECK ("PIECE_PRICE_TE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175887" CHECK ("UNIT_PRICE_TI" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175888" CHECK ("UNIT_PRICE_TE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175889" CHECK ("TA_TI" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175890" CHECK ("TA_TE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175891" CHECK ("TA_TAX" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY DISABLE NOVALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175892" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175893" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175894" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_LINES_PROFILES" ADD CONSTRAINT "SYS_C00175895" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RCV_REJECT_LINES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES" ADD CONSTRAINT "SYS_C00175918" PRIMARY KEY ("IN_REJECT_LINE_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RCV_REJECT_LINES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES" ADD CONSTRAINT "SYS_C00250548" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES" ADD CONSTRAINT "SYS_C00250549" CHECK ("RCV_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES" ADD CONSTRAINT "SYS_C00250550" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES" ADD CONSTRAINT "SYS_C00250551" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES" ADD CONSTRAINT "SYS_C00250552" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES" ADD CONSTRAINT "SYS_C00250553" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES" ADD CONSTRAINT "SYS_C00250554" CHECK ("BATCH_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES" ADD CONSTRAINT "SYS_C00250555" CHECK ("TASK_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_REJECT_LINES" ADD CONSTRAINT "SYS_C00250556" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Checks structure for table WMS_IN_RCV_TEMP_SAVE
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE" ADD CONSTRAINT "SYS_C00250660" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE" ADD CONSTRAINT "SYS_C00250900" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE" ADD CONSTRAINT "SYS_C00250901" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE" ADD CONSTRAINT "SYS_C00250902" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Indexes structure for table WMS_IN_RCV_TEMP_SAVE
-- ----------------------------
CREATE INDEX "UPCLOUD_BIZ_INBOUND"."ASN_HEADER_ID_INDEX"
  ON "UPCLOUD_BIZ_INBOUND"."WMS_IN_RCV_TEMP_SAVE" ("ASN_HEADER_ID" DESC)
  LOGGING
  VISIBLE
PCTFREE 10
INITRANS 2
STORAGE (
  INITIAL 65536 
  NEXT 1048576 
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
);

-- ----------------------------
-- Primary Key structure for table WMS_IN_RQC_HEADERS
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00175928" PRIMARY KEY ("RQC_HEADER_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RQC_HEADERS
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00175919" CHECK ("RQC_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00175920" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00175921" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00175922" CHECK ("BILL_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00175923" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00175924" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00175925" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00175926" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00175927" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00250539" CHECK ("RQC_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00250540" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00250541" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00250542" CHECK ("BILL_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00250543" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00250544" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00250545" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00250546" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_HEADERS" ADD CONSTRAINT "SYS_C00250547" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RQC_LINES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175971" PRIMARY KEY ("RQC_LINE_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RQC_LINES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175947" CHECK ("RQC_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175948" CHECK ("RQC_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175949" CHECK ("TASK_RQC_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175950" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175951" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175952" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175953" CHECK ("BATCH_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175954" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175956" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175957" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175964" CHECK ("QC_STATUS1" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175965" CHECK ("QC_STATUS2" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES" ADD CONSTRAINT "SYS_C00175966" CHECK ("QC_STATUS3" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RQC_LINES_copy1
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250751" PRIMARY KEY ("RQC_LINE_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RQC_LINES_copy1
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250388" CHECK ("RQC_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250738" CHECK ("RQC_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250739" CHECK ("RQC_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250740" CHECK ("TASK_RQC_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250741" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250742" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250743" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250744" CHECK ("BATCH_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250745" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250746" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250747" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250748" CHECK ("QC_STATUS1" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250749" CHECK ("QC_STATUS2" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINES_copy1" ADD CONSTRAINT "SYS_C00250750" CHECK ("QC_STATUS3" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RQC_LINE_PIC
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175946" PRIMARY KEY ("RQC_PIC_LINE_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RQC_LINE_PIC
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175929" CHECK ("RQC_PIC_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175930" CHECK ("TASK_RQC_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175931" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175932" CHECK ("RQC_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175933" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175934" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175935" CHECK ("LINE_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175936" CHECK ("BATCH_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175937" CHECK ("PIC_FILE_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175938" CHECK ("PIC_FILE_URL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175939" CHECK ("OP_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175940" CHECK ("OP_USERID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175941" CHECK ("REFBILLNO" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175942" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175943" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175944" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00175945" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250522" CHECK ("RQC_PIC_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250523" CHECK ("TASK_RQC_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250524" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250525" CHECK ("RQC_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250526" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250527" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250528" CHECK ("LINE_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250529" CHECK ("BATCH_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250530" CHECK ("PIC_FILE_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250531" CHECK ("PIC_FILE_URL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250532" CHECK ("OP_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250533" CHECK ("OP_USERID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250534" CHECK ("REFBILLNO" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250535" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250536" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250537" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_LINE_PIC" ADD CONSTRAINT "SYS_C00250538" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Checks structure for table WMS_IN_RQC_RECHEK_HEADERS
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" ADD CONSTRAINT "SYS_C00175972" CHECK ("CONSIGNOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" ADD CONSTRAINT "SYS_C00175973" CHECK ("ORIGINALBILLNO" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" ADD CONSTRAINT "SYS_C00175974" CHECK ("BILLNO" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" ADD CONSTRAINT "SYS_C00175975" CHECK ("BILL_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" ADD CONSTRAINT "SYS_C00175976" CHECK ("COMPANYCODE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" ADD CONSTRAINT "SYS_C00175977" CHECK ("QCSTATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" ADD CONSTRAINT "SYS_C00250516" CHECK ("CONSIGNOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" ADD CONSTRAINT "SYS_C00250517" CHECK ("ORIGINALBILLNO" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" ADD CONSTRAINT "SYS_C00250518" CHECK ("BILLNO" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" ADD CONSTRAINT "SYS_C00250519" CHECK ("BILL_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" ADD CONSTRAINT "SYS_C00250520" CHECK ("COMPANYCODE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_HEADERS" ADD CONSTRAINT "SYS_C00250521" CHECK ("QCSTATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Checks structure for table WMS_IN_RQC_RECHEK_LINES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES" ADD CONSTRAINT "SYS_C00175981" CHECK ("CONSIGNOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES" ADD CONSTRAINT "SYS_C00175982" CHECK ("BILLNO" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES" ADD CONSTRAINT "SYS_C00175983" CHECK ("RQC_LINEID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES" ADD CONSTRAINT "SYS_C00175984" CHECK ("ITEMID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES" ADD CONSTRAINT "SYS_C00175985" CHECK ("QC_STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES" ADD CONSTRAINT "SYS_C00250511" CHECK ("CONSIGNOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES" ADD CONSTRAINT "SYS_C00250512" CHECK ("BILLNO" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES" ADD CONSTRAINT "SYS_C00250513" CHECK ("RQC_LINEID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES" ADD CONSTRAINT "SYS_C00250514" CHECK ("ITEMID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RECHEK_LINES" ADD CONSTRAINT "SYS_C00250515" CHECK ("QC_STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RQC_RE_HEADERS
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS" ADD CONSTRAINT "SYS_C00184862" PRIMARY KEY ("RQC_RE_HEADER_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RQC_RE_HEADERS
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS" ADD CONSTRAINT "SYS_C00250507" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS" ADD CONSTRAINT "SYS_C00250508" CHECK ("MTL_OWNER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS" ADD CONSTRAINT "SYS_C00250509" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_HEADERS" ADD CONSTRAINT "SYS_C00250510" CHECK ("BILL_DATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RQC_RE_LINES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES" ADD CONSTRAINT "SYS_C00184912" PRIMARY KEY ("RQC_RE_LINE_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RQC_RE_LINES
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES" ADD CONSTRAINT "SYS_C00250499" CHECK ("RQC_RE_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES" ADD CONSTRAINT "SYS_C00250500" CHECK ("TASK_RE_RQC_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES" ADD CONSTRAINT "SYS_C00250501" CHECK ("RCV_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES" ADD CONSTRAINT "SYS_C00250502" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES" ADD CONSTRAINT "SYS_C00250503" CHECK ("MTL_OWNER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES" ADD CONSTRAINT "SYS_C00250504" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES" ADD CONSTRAINT "SYS_C00250505" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_RE_LINES" ADD CONSTRAINT "SYS_C00250506" CHECK ("STOCK_STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RQC_SAMPLE
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE" ADD CONSTRAINT "SYS_C00210242" PRIMARY KEY ("RQC_SAMPLE_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RQC_SAMPLE
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_SAMPLE" ADD CONSTRAINT "SYS_C00250389" CHECK ("RQC_SAMPLE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RQC_ST
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST" ADD CONSTRAINT "SYS_C00184915" PRIMARY KEY ("RQC_ST_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RQC_ST
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST" ADD CONSTRAINT "SYS_C00184914" CHECK ("RQC_ST_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST" ADD CONSTRAINT "SYS_C00250498" CHECK ("RQC_ST_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_RQC_ST_RULE
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE" ADD CONSTRAINT "SYS_C00273483" PRIMARY KEY ("RULE_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_RQC_ST_RULE
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE" ADD CONSTRAINT "SYS_C00273481" CHECK ("RULE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE" ADD CONSTRAINT "SYS_C00273482" CHECK ("RQC_ST_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE" ADD CONSTRAINT "SYS_C00336088" CHECK ("RULE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_RQC_ST_RULE" ADD CONSTRAINT "SYS_C00336089" CHECK ("RQC_ST_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_TASK_EXCEPTION_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL" ADD CONSTRAINT "SYS_C00175998" PRIMARY KEY ("TASK_EXCEPTION_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_TASK_EXCEPTION_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL" ADD CONSTRAINT "SYS_C00175986" CHECK ("TASK_EXCEPTION_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL" ADD CONSTRAINT "SYS_C00250489" CHECK ("MTL_OWNER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL" ADD CONSTRAINT "SYS_C00250490" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL" ADD CONSTRAINT "SYS_C00250491" CHECK ("ITEM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL" ADD CONSTRAINT "SYS_C00250492" CHECK ("QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL" ADD CONSTRAINT "SYS_C00250493" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL" ADD CONSTRAINT "SYS_C00250494" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL" ADD CONSTRAINT "SYS_C00250495" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL" ADD CONSTRAINT "SYS_C00250496" CHECK ("ACTIVE_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_EXCEPTION_DETAIL" ADD CONSTRAINT "SYS_C00250497" CHECK ("NODE_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_TASK_HOSTED_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00176021" PRIMARY KEY ("TASK_HOSTED_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_TASK_HOSTED_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00175999" CHECK ("TASK_HOSTED_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00176000" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00176001" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00176002" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00176003" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00176004" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00176005" CHECK ("ACTIVE_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00176006" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00176007" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00176008" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00176009" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00250478" CHECK ("TASK_HOSTED_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00250479" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00250480" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00250481" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00250482" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00250483" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00250484" CHECK ("ACTIVE_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00250485" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00250486" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00250487" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_HOSTED_DETAIL" ADD CONSTRAINT "SYS_C00250488" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_TASK_INSTOCK_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00176022" PRIMARY KEY ("TASK_INBOUND_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_TASK_INSTOCK_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00176010" CHECK ("TASK_INBOUND_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00176011" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00176012" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00176013" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00176014" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00176015" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00176016" CHECK ("ACTIVE_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00176017" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00176018" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00176019" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00176020" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00250467" CHECK ("TASK_INBOUND_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00250468" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00250469" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00250470" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00250471" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00250472" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00250473" CHECK ("ACTIVE_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00250474" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00250475" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00250476" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_INSTOCK_DETAIL" ADD CONSTRAINT "SYS_C00250477" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_TASK_PENDING_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00176034" PRIMARY KEY ("TASK_PENDING_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_TASK_PENDING_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00176023" CHECK ("TASK_PENDING_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00176024" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00176025" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00176026" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00176027" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00176028" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00176029" CHECK ("ACTIVE_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00176030" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00176031" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00176032" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00176033" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00250456" CHECK ("TASK_PENDING_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00250457" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00250458" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00250459" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00250460" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00250461" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00250462" CHECK ("ACTIVE_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00250463" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00250464" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00250465" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_PENDING_DETAIL" ADD CONSTRAINT "SYS_C00250466" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_TASK_QC_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00176057" PRIMARY KEY ("TASK_RQC_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_TASK_QC_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00176046" CHECK ("TASK_RQC_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00176047" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00176048" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00176049" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00176050" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00176051" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00176053" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00176054" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00176055" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00176056" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00250446" CHECK ("TASK_RQC_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00250447" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00250448" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00250449" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00250450" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00250451" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00250452" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00250453" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00250454" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_DETAIL" ADD CONSTRAINT "SYS_C00250455" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_TASK_QC_RECHECK_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00176081" PRIMARY KEY ("TASK_RECHECK_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_TASK_QC_RECHECK_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00176070" CHECK ("TASK_RECHECK_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00176071" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00176072" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00176073" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00176074" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00176075" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00176076" CHECK ("ACTIVE_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00176077" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00176078" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00176079" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00176080" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00250435" CHECK ("TASK_RECHECK_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00250436" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00250437" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00250438" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00250439" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00250440" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00250441" CHECK ("ACTIVE_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00250442" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00250443" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00250444" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_QC_RECHECK_DETAIL" ADD CONSTRAINT "SYS_C00250445" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_TASK_RCV_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00176093" PRIMARY KEY ("TASK_RCV_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_TASK_RCV_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00176082" CHECK ("TASK_RCV_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00176083" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00176084" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00176085" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00176086" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00176087" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00176088" CHECK ("ACTIVE_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00176089" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00176090" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00176091" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00176092" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00250424" CHECK ("TASK_RCV_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00250425" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00250426" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00250427" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00250428" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00250429" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00250430" CHECK ("ACTIVE_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00250431" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00250432" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00250433" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_RCV_DETAIL" ADD CONSTRAINT "SYS_C00250434" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_IN_TASK_REJECTED_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" ADD CONSTRAINT "SYS_C00176105" PRIMARY KEY ("TASK_REJECTED_ID");

-- ----------------------------
-- Checks structure for table WMS_IN_TASK_REJECTED_DETAIL
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" ADD CONSTRAINT "SYS_C00250412" CHECK ("TASK_REJECTED_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" ADD CONSTRAINT "SYS_C00250413" CHECK ("ENTERPRISE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" ADD CONSTRAINT "SYS_C00250414" CHECK ("WAREHOUSE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" ADD CONSTRAINT "SYS_C00250415" CHECK ("RCV_HEADER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" ADD CONSTRAINT "SYS_C00250416" CHECK ("RCV_LINE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" ADD CONSTRAINT "SYS_C00250417" CHECK ("UOM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" ADD CONSTRAINT "SYS_C00250418" CHECK ("CONVERSION_RATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" ADD CONSTRAINT "SYS_C00250419" CHECK ("PIECE_QTY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" ADD CONSTRAINT "SYS_C00250420" CHECK ("GMT_CREATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" ADD CONSTRAINT "SYS_C00250421" CHECK ("CREATOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" ADD CONSTRAINT "SYS_C00250422" CHECK ("GMT_MODIFIED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_IN_TASK_REJECTED_DETAIL" ADD CONSTRAINT "SYS_C00250423" CHECK ("MODIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Primary Key structure for table WMS_SUPERVISION_CODE
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE" ADD CONSTRAINT "SYS_C00250908" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table WMS_SUPERVISION_CODE
-- ----------------------------
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE" ADD CONSTRAINT "SYS_C00250648" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "UPCLOUD_BIZ_INBOUND"."WMS_SUPERVISION_CODE" ADD CONSTRAINT "SYS_C00250907" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
