You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
3.5 KiB

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Table CFG_ROUTE
  3. --------------------------------------------------------
  4. CREATE TABLE "MIRLE"."CFG_ROUTE"
  5. (
  6. "PRODUCT_TYPE" VARCHAR2(10 CHAR),
  7. "ROUTE_TYPE" VARCHAR2(10 CHAR),
  8. "SOURCE_POSITION" VARCHAR2(9 CHAR),
  9. "DEST_POSITION" VARCHAR2(9 CHAR),
  10. "SOFTWARE_ID" VARCHAR2(7 CHAR),
  11. "ESTIMATED_TIME" NUMBER(5,0),
  12. "CREATE_USER" VARCHAR2(30 CHAR),
  13. "CREATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
  14. "UPDATE_USER" VARCHAR2(30 CHAR),
  15. "UPDATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
  16. "STATUS" NUMBER(1,0) DEFAULT 0
  17. )
  18. SEGMENT CREATION IMMEDIATE
  19. PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
  20. NOCOMPRESS LOGGING
  21. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  22. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  23. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  24. TABLESPACE "SYSTEM" ;
  25. COMMENT ON COLUMN "MIRLE"."CFG_ROUTE"."PRODUCT_TYPE" IS '產品類別';
  26. COMMENT ON COLUMN "MIRLE"."CFG_ROUTE"."ROUTE_TYPE" IS '路線類別';
  27. COMMENT ON COLUMN "MIRLE"."CFG_ROUTE"."SOURCE_POSITION" IS '起始位置';
  28. COMMENT ON COLUMN "MIRLE"."CFG_ROUTE"."DEST_POSITION" IS '目的位置';
  29. COMMENT ON COLUMN "MIRLE"."CFG_ROUTE"."SOFTWARE_ID" IS '軟體編號';
  30. COMMENT ON COLUMN "MIRLE"."CFG_ROUTE"."ESTIMATED_TIME" IS '預估時間';
  31. COMMENT ON COLUMN "MIRLE"."CFG_ROUTE"."CREATE_USER" IS '建立人員';
  32. COMMENT ON COLUMN "MIRLE"."CFG_ROUTE"."CREATE_TIME" IS '建立時間';
  33. COMMENT ON COLUMN "MIRLE"."CFG_ROUTE"."UPDATE_USER" IS '更新人員';
  34. COMMENT ON COLUMN "MIRLE"."CFG_ROUTE"."UPDATE_TIME" IS '更新時間';
  35. COMMENT ON COLUMN "MIRLE"."CFG_ROUTE"."STATUS" IS '資料狀態';
  36. --------------------------------------------------------
  37. -- DDL for Index CFG_ROUTE_PK
  38. --------------------------------------------------------
  39. CREATE UNIQUE INDEX "MIRLE"."CFG_ROUTE_PK" ON "MIRLE"."CFG_ROUTE" ("PRODUCT_TYPE", "ROUTE_TYPE", "SOURCE_POSITION", "DEST_POSITION")
  40. PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  41. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  42. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  43. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  44. TABLESPACE "SYSTEM" ;
  45. --------------------------------------------------------
  46. -- Constraints for Table CFG_ROUTE
  47. --------------------------------------------------------
  48. ALTER TABLE "MIRLE"."CFG_ROUTE" MODIFY ("PRODUCT_TYPE" NOT NULL ENABLE);
  49. ALTER TABLE "MIRLE"."CFG_ROUTE" MODIFY ("ROUTE_TYPE" NOT NULL ENABLE);
  50. ALTER TABLE "MIRLE"."CFG_ROUTE" MODIFY ("SOURCE_POSITION" NOT NULL ENABLE);
  51. ALTER TABLE "MIRLE"."CFG_ROUTE" MODIFY ("DEST_POSITION" NOT NULL ENABLE);
  52. ALTER TABLE "MIRLE"."CFG_ROUTE" MODIFY ("SOFTWARE_ID" NOT NULL ENABLE);
  53. ALTER TABLE "MIRLE"."CFG_ROUTE" MODIFY ("CREATE_USER" NOT NULL ENABLE);
  54. ALTER TABLE "MIRLE"."CFG_ROUTE" MODIFY ("CREATE_TIME" NOT NULL ENABLE);
  55. ALTER TABLE "MIRLE"."CFG_ROUTE" MODIFY ("UPDATE_USER" NOT NULL ENABLE);
  56. ALTER TABLE "MIRLE"."CFG_ROUTE" MODIFY ("UPDATE_TIME" NOT NULL ENABLE);
  57. ALTER TABLE "MIRLE"."CFG_ROUTE" MODIFY ("STATUS" NOT NULL ENABLE);
  58. ALTER TABLE "MIRLE"."CFG_ROUTE" ADD CONSTRAINT "CFG_ROUTE_PK" PRIMARY KEY ("PRODUCT_TYPE", "ROUTE_TYPE", "SOURCE_POSITION", "DEST_POSITION")
  59. USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  60. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  61. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  62. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  63. TABLESPACE "SYSTEM" ENABLE;