-- JXPLTCM.PLTCM_PDI_PLAN definition

CREATE TABLE "JXPLTCM"."PLTCM_PDI_PLAN" 
   (	"PROCESS_CODE" VARCHAR2(4) DEFAULT 'L2', 
	"SEQID" NUMBER NOT NULL ENABLE, 
	"COILID" VARCHAR2(20), 
	"HOT_COILID" VARCHAR2(20), 
	"DUMMY_FLAG" NUMBER(1,0) DEFAULT 0, 
	"CHANGE_FLAG" NUMBER(1,0) DEFAULT 0, 
	"SLEEVE_FLAG" NUMBER(1,0) DEFAULT 0, 
	"ENTRY_THICK" FLOAT(126) DEFAULT 0, 
	"ENTRY_WIDTH" FLOAT(126) DEFAULT 0, 
	"ENTRY_WEIGHT" FLOAT(126) DEFAULT 0, 
	"MERGE_MARK" VARCHAR2(2), 
	"ENTRY_LENGTH" FLOAT(126) DEFAULT 0, 
	"ENTRY_INNER_DIAMETER" NUMBER(3,0) DEFAULT 762, 
	"ENTRY_OUTER_DIAMETER" NUMBER(4,0) DEFAULT 0, 
	"TEST_NO" VARCHAR2(4), 
	"SAMPLE_MARK" VARCHAR2(1) DEFAULT '0', 
	"SAMPLE_ORDER" VARCHAR2(1) DEFAULT '0', 
	"SAMPLE_POSITION" VARCHAR2(3), 
	"SAMPLE_FREQUENCY" VARCHAR2(2), 
	"PRECEDING_PROCESS_CODE" VARCHAR2(4), 
	"ROLL_MODE" NUMBER(1,0), 
	"MONTH" NUMBER(2,0), 
	"DAY" NUMBER(2,0), 
	"SHIFT" VARCHAR2(1), 
	"YEAR" NUMBER(4,0), 
	"HOUR" NUMBER(2,0), 
	"MINUTE" NUMBER(2,0), 
	"CONTENT_C" FLOAT(126) DEFAULT 0, 
	"CONTENT_SI" FLOAT(126) DEFAULT 0, 
	"CONTENT_MN" FLOAT(126) DEFAULT 0, 
	"CONTENT_P" FLOAT(126) DEFAULT 0, 
	"CONTENT_S" FLOAT(126) DEFAULT 0, 
	"CONTENT_CU" FLOAT(126) DEFAULT 0, 
	"CONTENT_NI" FLOAT(126) DEFAULT 0, 
	"CONTENT_CR" FLOAT(126) DEFAULT 0, 
	"CONTENT_MO" FLOAT(126) DEFAULT 0, 
	"CONTENT_NB" FLOAT(126) DEFAULT 0, 
	"CONTENT_V" FLOAT(126) DEFAULT 0, 
	"CONTENT_TI" FLOAT(126) DEFAULT 0, 
	"CONTENT_B" FLOAT(126) DEFAULT 0, 
	"CONTENT_AL" FLOAT(126) DEFAULT 0, 
	"CONTENT_SOLAL" FLOAT(126) DEFAULT 0, 
	"CONTENT_N" FLOAT(126) DEFAULT 0, 
	"CONTENT_SN" FLOAT(126) DEFAULT 0, 
	"CONTENT_AS" FLOAT(126) DEFAULT 0, 
	"CONTENT_CA" FLOAT(126) DEFAULT 0, 
	"CONTENT_ZR" FLOAT(126) DEFAULT 0, 
	"CONTENT_W" FLOAT(126) DEFAULT 0, 
	"CONTENT_H" FLOAT(126) DEFAULT 0, 
	"CONTENT_O" FLOAT(126) DEFAULT 0, 
	"AVG_HCT" NUMBER(3,0) DEFAULT 600, 
	"MAX_HCT" NUMBER(3,0) DEFAULT 600, 
	"MIN_HCT" NUMBER(3,0) DEFAULT 600, 
	"AVG_FMT" NUMBER(3,0) DEFAULT 800, 
	"MAX_FMT" NUMBER(3,0) DEFAULT 800, 
	"MIN_FMT" NUMBER(3,0) DEFAULT 800, 
	"DISCHARGE_TEMP" NUMBER(4,0) DEFAULT 1200, 
	"COOLING_METHOD" VARCHAR2(2) DEFAULT ' ', 
	"EXIT_COILID" VARCHAR2(20) DEFAULT '000000000', 
	"NEXT_UNIT" VARCHAR2(4) DEFAULT 'C000', 
	"TRIMMING" NUMBER(1,0) DEFAULT 0, 
	"MERGE_MODE" VARCHAR2(2) DEFAULT '00', 
	"SPLIT_NUM" NUMBER(1,0) DEFAULT 1, 
	"CUT_MODE" NUMBER(1,0) DEFAULT 0, 
	"EXIT_VALUE1" FLOAT(126) DEFAULT 0, 
	"EXIT_VALUE2" FLOAT(126) DEFAULT 0, 
	"EXIT_VALUE3" FLOAT(126) DEFAULT 0, 
	"EXIT_VALUE4" FLOAT(126) DEFAULT 0, 
	"EXIT_VALUE5" FLOAT(126) DEFAULT 0, 
	"EXIT_VALUE6" FLOAT(126) DEFAULT 0, 
	"EXIT_WEIGHT" FLOAT(126) DEFAULT 0, 
	"EXIT_LENGTH" FLOAT(126) DEFAULT 0, 
	"EXIT_THICK" FLOAT(126) DEFAULT 0, 
	"EXIT_WIDTH" FLOAT(126) DEFAULT 0, 
	"MIN_EXIT_WEIGHT" FLOAT(126) DEFAULT 0, 
	"MAX_EXIT_WEIGHT" FLOAT(126) DEFAULT 0, 
	"MIN_EXIT_LENGTH" FLOAT(126) DEFAULT 0, 
	"MAX_EXIT_LENGTH" FLOAT(126) DEFAULT 0, 
	"MIN_EXIT_THICK" FLOAT(126) DEFAULT 0, 
	"MAX_EXIT_THICK" FLOAT(126) DEFAULT 0, 
	"MIN_EXIT_WIDTH" FLOAT(126) DEFAULT 0, 
	"MAX_EXIT_WIDTH" FLOAT(126) DEFAULT 0, 
	"EXIT_INNER_DIAMETER" NUMBER(3,0) DEFAULT 508, 
	"ORDER_NO" VARCHAR2(10), 
	"ORDER_QUALITY" VARCHAR2(50), 
	"GRADE" VARCHAR2(16), 
	"STEEL_CLASS" VARCHAR2(16), 
	"YIELD_STRENGTH" NUMBER(4,0), 
	"TENSILE_STRENGTH" NUMBER(4,0), 
	"PARK_TYPE" VARCHAR2(20), 
	"SORTING_GRADE" NUMBER(1,0) DEFAULT 0, 
	"FLATNESS" NUMBER(3,0) DEFAULT 0, 
	"STD_ROUGH" FLOAT(126) DEFAULT 0, 
	"MIN_ROUGH" FLOAT(126) DEFAULT 0, 
	"MAX_ROUGH" FLOAT(126) DEFAULT 0, 
	"FINAL_USE" VARCHAR2(4), 
	"ORDER_THICK" FLOAT(126) DEFAULT 0, 
	"ORDER_WIDTH" FLOAT(126) DEFAULT 0, 
	"WEIGHT_TYPE" NUMBER(1,0) DEFAULT 0, 
	"HEAT_NO" VARCHAR2(7), 
	"STATUS" VARCHAR2(12) DEFAULT 'NEW', 
	"INSDATE" DATE DEFAULT SYSDATE, 
	"ONLINE_DATE" DATE DEFAULT SYSDATE, 
	"START_DATE" DATE DEFAULT SYSDATE, 
	"END_DATE" DATE DEFAULT SYSDATE, 
	"STRAT_MODE" NUMBER(2,0) DEFAULT 0, 
	"SIDE_TRIM" VARCHAR2(50), 
	 CONSTRAINT "PLTCM_PDI_PLAN_KEY" PRIMARY KEY ("COILID")
  USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "SYSTEM"  ENABLE
   ) SEGMENT CREATION IMMEDIATE 
  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "SYSTEM" ;

COMMENT ON TABLE JXPLTCM.PLTCM_PDI_PLAN IS '生产计划表';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.DUMMY_FLAG IS '改规格标记， 0=未改规格，1=改规格';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.SLEEVE_FLAG IS '套筒使用标记， 0=不使用，1=需要使用';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.MERGE_MARK IS '并卷标记';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.ENTRY_INNER_DIAMETER IS '来料内径';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.ENTRY_OUTER_DIAMETER IS '来料外径';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.SAMPLE_MARK IS '取样标志位，0=不取样，1=取样';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.SAMPLE_ORDER IS '取样目的';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.SAMPLE_POSITION IS '取样位置';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.SAMPLE_FREQUENCY IS '取样频率';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.PRECEDING_PROCESS_CODE IS '上游机组';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_C IS '碳含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_SI IS '硅含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_MN IS '锰含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_P IS '磷含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_S IS '硫含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_CU IS '铜含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_NI IS '镍含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_CR IS '铬含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_MO IS '钼含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_NB IS '铌含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_V IS '钒含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_TI IS '钛含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_B IS '硼含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_AL IS '铝含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_SOLAL IS '酸溶铝含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_N IS '氮含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_SN IS '锡含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_AS IS '砷含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_CA IS '钙含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_ZR IS '锆含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_W IS '钨含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_H IS '氢含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CONTENT_O IS '氧含量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.AVG_FMT IS '平均终轧温度';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.DISCHARGE_TEMP IS '热轧出炉温度';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.COOLING_METHOD IS '冷却方式';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.EXIT_COILID IS '出口钢卷号';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.NEXT_UNIT IS '后工序号';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.TRIMMING IS '切边指示';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.MERGE_MODE IS '并卷方式';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.SPLIT_NUM IS '分卷数';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.CUT_MODE IS '剪切模式';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.ORDER_NO IS '生产合同号';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.ORDER_QUALITY IS '钢种牌号';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.GRADE IS '出钢记号';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.STEEL_CLASS IS '钢种类型';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.YIELD_STRENGTH IS '屈服强度， MPa';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.TENSILE_STRENGTH IS '抗拉强度，MPa';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.PARK_TYPE IS '包装种类';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.SORTING_GRADE IS '分选度';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.FLATNESS IS '平坦度';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.FINAL_USE IS '最终用途';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.WEIGHT_TYPE IS '出口计重方式，0=实际重量， 1=理论重量';
COMMENT ON COLUMN JXPLTCM.PLTCM_PDI_PLAN.HEAT_NO IS '熔炼号';