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.

60 lines
3.2 KiB

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Table MAP_USER_AND_FUNC
  3. --------------------------------------------------------
  4. CREATE TABLE "MIRLE"."MAP_USER_AND_FUNC"
  5. (
  6. "USER_ID" VARCHAR2(30 CHAR),
  7. "FUNC_ID" NUMBER(*,0),
  8. "PERMISSION" NUMBER(1,0) DEFAULT 0,
  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"."MAP_USER_AND_FUNC"."USER_ID" IS '使用者編號';
  23. COMMENT ON COLUMN "MIRLE"."MAP_USER_AND_FUNC"."FUNC_ID" IS '功能編號';
  24. COMMENT ON COLUMN "MIRLE"."MAP_USER_AND_FUNC"."PERMISSION" IS '使用者權限';
  25. COMMENT ON COLUMN "MIRLE"."MAP_USER_AND_FUNC"."CREATE_USER" IS '建立人員';
  26. COMMENT ON COLUMN "MIRLE"."MAP_USER_AND_FUNC"."CREATE_TIME" IS '建立時間';
  27. COMMENT ON COLUMN "MIRLE"."MAP_USER_AND_FUNC"."UPDATE_USER" IS '更新人員';
  28. COMMENT ON COLUMN "MIRLE"."MAP_USER_AND_FUNC"."UPDATE_TIME" IS '更新時間';
  29. COMMENT ON COLUMN "MIRLE"."MAP_USER_AND_FUNC"."STATUS" IS '資料狀態';
  30. --------------------------------------------------------
  31. -- DDL for Index MAP_USER_AND_FUNC_PK
  32. --------------------------------------------------------
  33. CREATE UNIQUE INDEX "MIRLE"."MAP_USER_AND_FUNC_PK" ON "MIRLE"."MAP_USER_AND_FUNC" ("USER_ID", "FUNC_ID", "PERMISSION")
  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 MAP_USER_AND_FUNC
  41. --------------------------------------------------------
  42. ALTER TABLE "MIRLE"."MAP_USER_AND_FUNC" MODIFY ("USER_ID" NOT NULL ENABLE);
  43. ALTER TABLE "MIRLE"."MAP_USER_AND_FUNC" MODIFY ("FUNC_ID" NOT NULL ENABLE);
  44. ALTER TABLE "MIRLE"."MAP_USER_AND_FUNC" MODIFY ("PERMISSION" NOT NULL ENABLE);
  45. ALTER TABLE "MIRLE"."MAP_USER_AND_FUNC" MODIFY ("CREATE_USER" NOT NULL ENABLE);
  46. ALTER TABLE "MIRLE"."MAP_USER_AND_FUNC" MODIFY ("CREATE_TIME" NOT NULL ENABLE);
  47. ALTER TABLE "MIRLE"."MAP_USER_AND_FUNC" MODIFY ("UPDATE_USER" NOT NULL ENABLE);
  48. ALTER TABLE "MIRLE"."MAP_USER_AND_FUNC" MODIFY ("UPDATE_TIME" NOT NULL ENABLE);
  49. ALTER TABLE "MIRLE"."MAP_USER_AND_FUNC" MODIFY ("STATUS" NOT NULL ENABLE);
  50. ALTER TABLE "MIRLE"."MAP_USER_AND_FUNC" ADD CONSTRAINT "MAP_USER_AND_FUNC_PK" PRIMARY KEY ("USER_ID", "FUNC_ID", "PERMISSION")
  51. USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  52. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  53. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  54. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  55. TABLESPACE "SYSTEM" ENABLE;