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.

57 lines
3.0 KiB

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