-------------------------------------------------------- -- DDL for Table CFG_FUNC -------------------------------------------------------- CREATE TABLE "MIRLE"."CFG_FUNC" ( "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, "FUNC_NAME" VARCHAR2(50 CHAR), "FUNC_URL" VARCHAR2(64 CHAR), "PARENT_FUNC_ID" NUMBER(*,0), "CREATE_USER" VARCHAR2(30 CHAR), "CREATE_TIME" TIMESTAMP (6) DEFAULT systimestamp, "UPDATE_USER" VARCHAR2(30 CHAR), "UPDATE_TIME" TIMESTAMP (6) DEFAULT systimestamp, "STATUS" NUMBER(1,0) DEFAULT 0 ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."FUNC_ID" IS '功能編號'; COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."FUNC_NAME" IS '功能名稱'; COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."FUNC_URL" IS '功能網址'; COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."PARENT_FUNC_ID" IS '父功能編號'; COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."CREATE_USER" IS '建立人員'; COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."CREATE_TIME" IS '建立時間'; COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."UPDATE_USER" IS '更新人員'; COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."UPDATE_TIME" IS '更新時間'; COMMENT ON COLUMN "MIRLE"."CFG_FUNC"."STATUS" IS '資料狀態'; -------------------------------------------------------- -- DDL for Index CFG_FUNC_PK -------------------------------------------------------- CREATE UNIQUE INDEX "MIRLE"."CFG_FUNC_PK" ON "MIRLE"."CFG_FUNC" ("FUNC_ID") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- Constraints for Table CFG_FUNC -------------------------------------------------------- ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("FUNC_ID" NOT NULL ENABLE); ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("FUNC_NAME" NOT NULL ENABLE); ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("PARENT_FUNC_ID" NOT NULL ENABLE); ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("CREATE_USER" NOT NULL ENABLE); ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("CREATE_TIME" NOT NULL ENABLE); ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("UPDATE_USER" NOT NULL ENABLE); ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("UPDATE_TIME" NOT NULL ENABLE); ALTER TABLE "MIRLE"."CFG_FUNC" MODIFY ("STATUS" NOT NULL ENABLE); ALTER TABLE "MIRLE"."CFG_FUNC" ADD CONSTRAINT "CFG_FUNC_PK" PRIMARY KEY ("FUNC_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ENABLE;