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.

59 lines
3.0 KiB

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Table CFG_WAREHOUSE
  3. --------------------------------------------------------
  4. CREATE TABLE "MIRLE"."CFG_WAREHOUSE"
  5. (
  6. "WAREHOUSE_ID" VARCHAR2(5 CHAR),
  7. "WAREHOUSE_NAME" VARCHAR2(30 CHAR),
  8. "WAREHOUSE_DESC" VARCHAR2(50 CHAR),
  9. "CREATE_USER" VARCHAR2(30 CHAR),
  10. "CREATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
  11. "UPDATE_USER" VARCHAR2(30 CHAR),
  12. "UPDATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
  13. "STATUS" NUMBER(1,0) DEFAULT 0
  14. )
  15. SEGMENT CREATION IMMEDIATE
  16. PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
  17. NOCOMPRESS LOGGING
  18. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  19. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  20. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  21. TABLESPACE "SYSTEM" ;
  22. COMMENT ON COLUMN "MIRLE"."CFG_WAREHOUSE"."WAREHOUSE_ID" IS '倉庫編號';
  23. COMMENT ON COLUMN "MIRLE"."CFG_WAREHOUSE"."WAREHOUSE_NAME" IS '倉庫名稱';
  24. COMMENT ON COLUMN "MIRLE"."CFG_WAREHOUSE"."WAREHOUSE_DESC" IS '倉庫敘述';
  25. COMMENT ON COLUMN "MIRLE"."CFG_WAREHOUSE"."CREATE_USER" IS '建立人員';
  26. COMMENT ON COLUMN "MIRLE"."CFG_WAREHOUSE"."CREATE_TIME" IS '建立時間';
  27. COMMENT ON COLUMN "MIRLE"."CFG_WAREHOUSE"."UPDATE_USER" IS '更新人員';
  28. COMMENT ON COLUMN "MIRLE"."CFG_WAREHOUSE"."UPDATE_TIME" IS '更新時間';
  29. COMMENT ON COLUMN "MIRLE"."CFG_WAREHOUSE"."STATUS" IS '資料狀態';
  30. --------------------------------------------------------
  31. -- DDL for Index CFG_WAREHOUSE_PK
  32. --------------------------------------------------------
  33. CREATE UNIQUE INDEX "MIRLE"."CFG_WAREHOUSE_PK" ON "MIRLE"."CFG_WAREHOUSE" ("WAREHOUSE_ID")
  34. PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  35. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  36. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  37. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  38. TABLESPACE "SYSTEM" ;
  39. --------------------------------------------------------
  40. -- Constraints for Table CFG_WAREHOUSE
  41. --------------------------------------------------------
  42. ALTER TABLE "MIRLE"."CFG_WAREHOUSE" MODIFY ("WAREHOUSE_ID" NOT NULL ENABLE);
  43. ALTER TABLE "MIRLE"."CFG_WAREHOUSE" MODIFY ("WAREHOUSE_NAME" NOT NULL ENABLE);
  44. ALTER TABLE "MIRLE"."CFG_WAREHOUSE" MODIFY ("CREATE_USER" NOT NULL ENABLE);
  45. ALTER TABLE "MIRLE"."CFG_WAREHOUSE" MODIFY ("CREATE_TIME" NOT NULL ENABLE);
  46. ALTER TABLE "MIRLE"."CFG_WAREHOUSE" MODIFY ("UPDATE_USER" NOT NULL ENABLE);
  47. ALTER TABLE "MIRLE"."CFG_WAREHOUSE" MODIFY ("UPDATE_TIME" NOT NULL ENABLE);
  48. ALTER TABLE "MIRLE"."CFG_WAREHOUSE" MODIFY ("STATUS" NOT NULL ENABLE);
  49. ALTER TABLE "MIRLE"."CFG_WAREHOUSE" ADD CONSTRAINT "CFG_WAREHOUSE_PK" PRIMARY KEY ("WAREHOUSE_ID")
  50. USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  51. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  52. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  53. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  54. TABLESPACE "SYSTEM" ENABLE;