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.

62 lines
3.2 KiB

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Table CFG_FUNC
  3. --------------------------------------------------------
  4. CREATE TABLE "MIRLE"."CFG_FUNC"
  5. (
  6. "FUNC_ID" NUMBER(*,0) GENERATED BY DEFAULT ON NULL AS IDENTITY MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE NOKEEP NOSCALE,
  7. "FUNC_NAME" VARCHAR2(50 CHAR),
  8. "FUNC_URL" VARCHAR2(64 CHAR),
  9. "PARENT_FUNC_ID" NUMBER(*,0),
  10. "CREATE_USER" VARCHAR2(30 CHAR),
  11. "CREATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
  12. "UPDATE_USER" VARCHAR2(30 CHAR),
  13. "UPDATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
  14. "STATUS" NUMBER(1,0) DEFAULT 0
  15. )
  16. SEGMENT CREATION IMMEDIATE
  17. PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
  18. NOCOMPRESS LOGGING
  19. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  20. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  21. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  22. TABLESPACE "SYSTEM" ;
  23. COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."FUNC_ID" IS '功能編號';
  24. COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."FUNC_NAME" IS '功能名稱';
  25. COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."FUNC_URL" IS '功能網址';
  26. COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."PARENT_FUNC_ID" IS '父功能編號';
  27. COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."CREATE_USER" IS '建立人員';
  28. COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."CREATE_TIME" IS '建立時間';
  29. COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."UPDATE_USER" IS '更新人員';
  30. COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."UPDATE_TIME" IS '更新時間';
  31. COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."STATUS" IS '資料狀態';
  32. --------------------------------------------------------
  33. -- DDL for Index CFG_FUNC_PK
  34. --------------------------------------------------------
  35. CREATE UNIQUE INDEX "MIRLE"."CFG_FUNC_PK" ON "MIRLE"."CFG_FUNC" ("FUNC_ID")
  36. PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  37. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  38. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  39. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  40. TABLESPACE "SYSTEM" ;
  41. --------------------------------------------------------
  42. -- Constraints for Table CFG_FUNC
  43. --------------------------------------------------------
  44. ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("FUNC_ID" NOT NULL ENABLE);
  45. ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("FUNC_NAME" NOT NULL ENABLE);
  46. ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("PARENT_FUNC_ID" NOT NULL ENABLE);
  47. ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("CREATE_USER" NOT NULL ENABLE);
  48. ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("CREATE_TIME" NOT NULL ENABLE);
  49. ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("UPDATE_USER" NOT NULL ENABLE);
  50. ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("UPDATE_TIME" NOT NULL ENABLE);
  51. ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("STATUS" NOT NULL ENABLE);
  52. ALTER TABLE "MIRLE"."CFG_FUNC" ADD CONSTRAINT "CFG_FUNC_PK" PRIMARY KEY ("FUNC_ID")
  53. USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  54. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  55. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  56. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  57. TABLESPACE "SYSTEM" ENABLE;