CREATE TABLE "Z_SFC_DISPATCH"
(	"HANDLE" NVARCHAR2(412) NOT NULL ENABLE,
	"SITE" NVARCHAR2(6),
	"SHOP_ORDER" NVARCHAR2(128),
	"WORK_ORDER" NVARCHAR2(128),
	"SFC" NVARCHAR2(128),
	"BLANKING_SIZE" NVARCHAR2(128),
	"DISPATCH_SEQ" NVARCHAR2(10),
	"DISPATCH_NO" NVARCHAR2(412),
	"DISPATCH_STATUS" NVARCHAR2(10),
	"DRAWINGS_NO" NVARCHAR2(128),
	"DRAWINGS_REVISION" NVARCHAR2(128),
	"IS_LOCK" NVARCHAR2(20),
	"ROUTER_BO" NVARCHAR2(412),
	"STEP_ID" NVARCHAR2(128),
	"OPERATION" NVARCHAR2(128),
	"RESOURCE_TYPE" NVARCHAR2(128),
	"WORK_CENTER" NVARCHAR2(128),
	"RESRCE" NVARCHAR2(128),
	"EMPLOYEE" NVARCHAR2(30),
	"TURN_OPERATION" NVARCHAR2(6),
	"DISPATCH_QTY" NUMBER(38,6),
	"PROD_HOURS" NUMBER(32,10),
	"PLANNED_START_DATE" DATE,
	"PLANNED_COMPLETE_DATE" DATE,
	"EARLIEST_START_DATE" DATE,
	"LATEST_END_DATE" DATE,
	"SO_RELEASED_DATE" DATE,
	"SFC_RELEASED_DATE" DATE,
	"RELEASED_COMPLETE_DATE" DATE,
	"ACTUAL_START_DATE" DATE,
	"ACTUAL_COMPLETE_DATE" DATE,
	"IS_DISPATCH" NVARCHAR2(6),
	"IS_IMPORT" NVARCHAR2(6),
	"REMARK" NVARCHAR2(512),
	"IS_FIRST_OPERATION" NVARCHAR2(6),
	"CREATE_USER" NVARCHAR2(30) NOT NULL ENABLE,
	"CREATED_DATE_TIME" DATE NOT NULL ENABLE,
	"MODIFY_USER" NVARCHAR2(30),
	"MODIFIED_DATE_TIME" DATE,
	"OTHER_1" NVARCHAR2(500),
	"OTHER_2" NVARCHAR2(500),
	"OTHER_3" NVARCHAR2(500),
	"OTHER_4" NVARCHAR2(500),
	"OTHER_5" NVARCHAR2(500),
	 PRIMARY KEY ("HANDLE")

) ;

COMMENT ON COLUMN Z_SFC_DISPATCH.HANDLE IS '主键'
COMMENT ON COLUMN Z_SFC_DISPATCH.SITE IS '站点'
COMMENT ON COLUMN Z_SFC_DISPATCH.SHOP_ORDER IS '工单编号'
COMMENT ON COLUMN Z_SFC_DISPATCH.WORK_ORDER IS '工作令号'
COMMENT ON COLUMN Z_SFC_DISPATCH.SFC IS 'SFC'
COMMENT ON COLUMN Z_SFC_DISPATCH.BLANKING_SIZE IS '下料尺寸'
COMMENT ON COLUMN Z_SFC_DISPATCH.DISPATCH_SEQ IS '派工序号'
COMMENT ON COLUMN Z_SFC_DISPATCH.DISPATCH_NO IS '派工单号'
COMMENT ON COLUMN Z_SFC_DISPATCH.DISPATCH_STATUS IS '新建/NEW、发布/RELEASE、暂挂/PAUSE、取消/CANCEL、完成/COMPLETE'
COMMENT ON COLUMN Z_SFC_DISPATCH.DRAWINGS_NO IS '图号'
COMMENT ON COLUMN Z_SFC_DISPATCH.DRAWINGS_REVISION IS '图号版本'
COMMENT ON COLUMN Z_SFC_DISPATCH.IS_LOCK IS '是否锁定'
COMMENT ON COLUMN Z_SFC_DISPATCH.ROUTER_BO IS '工艺路线'
COMMENT ON COLUMN Z_SFC_DISPATCH.STEP_ID IS '步骤标示'
COMMENT ON COLUMN Z_SFC_DISPATCH.OPERATION IS '工序'
COMMENT ON COLUMN Z_SFC_DISPATCH.RESOURCE_TYPE IS '资源类型'
COMMENT ON COLUMN Z_SFC_DISPATCH.WORK_CENTER IS '工作中心'
COMMENT ON COLUMN Z_SFC_DISPATCH.RESRCE IS '资源'
COMMENT ON COLUMN Z_SFC_DISPATCH.EMPLOYEE IS '操作人员'
COMMENT ON COLUMN Z_SFC_DISPATCH.TURN_OPERATION IS '是否已经转序'
COMMENT ON COLUMN Z_SFC_DISPATCH.DISPATCH_QTY IS '派工数量'
COMMENT ON COLUMN Z_SFC_DISPATCH.PROD_HOURS IS '生产工时'
COMMENT ON COLUMN Z_SFC_DISPATCH.PLANNED_START_DATE IS '计划开始时间'
COMMENT ON COLUMN Z_SFC_DISPATCH.PLANNED_COMPLETE_DATE IS '计划完成时间'
COMMENT ON COLUMN Z_SFC_DISPATCH.EARLIEST_START_DATE IS '最早开始时间'
COMMENT ON COLUMN Z_SFC_DISPATCH.LATEST_END_DATE IS '最晚结束时间'
COMMENT ON COLUMN Z_SFC_DISPATCH.SO_RELEASED_DATE IS '工单整理下达时间'
COMMENT ON COLUMN Z_SFC_DISPATCH.SFC_RELEASED_DATE IS 'SFC派工发布时间'
COMMENT ON COLUMN Z_SFC_DISPATCH.RELEASED_COMPLETE_DATE IS '首次发布计划完成时间'
COMMENT ON COLUMN Z_SFC_DISPATCH.ACTUAL_START_DATE IS '实际开始时间'
COMMENT ON COLUMN Z_SFC_DISPATCH.ACTUAL_COMPLETE_DATE IS '实际完成时间'
COMMENT ON COLUMN Z_SFC_DISPATCH.IS_DISPATCH IS '是否已经分配资源'
COMMENT ON COLUMN Z_SFC_DISPATCH.IS_IMPORT IS '是否导入'
COMMENT ON COLUMN Z_SFC_DISPATCH.REMARK IS '备注'
COMMENT ON COLUMN Z_SFC_DISPATCH.IS_FIRST_OPERATION IS '是否首工序'
COMMENT ON COLUMN Z_SFC_DISPATCH.CREATE_USER IS '创建人'
COMMENT ON COLUMN Z_SFC_DISPATCH.CREATED_DATE_TIME IS '创建时间'
COMMENT ON COLUMN Z_SFC_DISPATCH.MODIFY_USER IS '修改人'
COMMENT ON COLUMN Z_SFC_DISPATCH.MODIFIED_DATE_TIME IS '修改时间'
COMMENT ON COLUMN Z_SFC_DISPATCH.OTHER_1 IS '当前工序是否完成';