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.

58 lines
2.8 KiB

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Table CFG_GROUP
  3. --------------------------------------------------------
  4. CREATE TABLE "MIRLE"."CFG_GROUP"
  5. (
  6. "GROUP_NAME" VARCHAR2(50 CHAR),
  7. "GROUP_EMAIL" VARCHAR2(64 CHAR),
  8. "GROUP_OWNER" VARCHAR2(30 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_GROUP"."GROUP_NAME" IS '群組名稱';
  23. COMMENT ON COLUMN "MIRLE"."CFG_GROUP"."GROUP_EMAIL" IS '群組郵件';
  24. COMMENT ON COLUMN "MIRLE"."CFG_GROUP"."GROUP_OWNER" IS '群組擁有者';
  25. COMMENT ON COLUMN "MIRLE"."CFG_GROUP"."CREATE_USER" IS '建立人員';
  26. COMMENT ON COLUMN "MIRLE"."CFG_GROUP"."CREATE_TIME" IS '建立時間';
  27. COMMENT ON COLUMN "MIRLE"."CFG_GROUP"."UPDATE_USER" IS '更新人員';
  28. COMMENT ON COLUMN "MIRLE"."CFG_GROUP"."UPDATE_TIME" IS '更新時間';
  29. COMMENT ON COLUMN "MIRLE"."CFG_GROUP"."STATUS" IS '資料狀態';
  30. --------------------------------------------------------
  31. -- DDL for Index CFG_GROUP_PK
  32. --------------------------------------------------------
  33. CREATE UNIQUE INDEX "MIRLE"."CFG_GROUP_PK" ON "MIRLE"."CFG_GROUP" ("GROUP_NAME")
  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_GROUP
  41. --------------------------------------------------------
  42. ALTER TABLE "MIRLE"."CFG_GROUP" MODIFY ("GROUP_NAME" NOT NULL ENABLE);
  43. ALTER TABLE "MIRLE"."CFG_GROUP" MODIFY ("CREATE_USER" NOT NULL ENABLE);
  44. ALTER TABLE "MIRLE"."CFG_GROUP" MODIFY ("CREATE_TIME" NOT NULL ENABLE);
  45. ALTER TABLE "MIRLE"."CFG_GROUP" MODIFY ("UPDATE_USER" NOT NULL ENABLE);
  46. ALTER TABLE "MIRLE"."CFG_GROUP" MODIFY ("UPDATE_TIME" NOT NULL ENABLE);
  47. ALTER TABLE "MIRLE"."CFG_GROUP" MODIFY ("STATUS" NOT NULL ENABLE);
  48. ALTER TABLE "MIRLE"."CFG_GROUP" ADD CONSTRAINT "CFG_GROUP_PK" PRIMARY KEY ("GROUP_NAME")
  49. USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  50. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  51. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  52. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  53. TABLESPACE "SYSTEM" ENABLE;