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.
|
|
--------------------------------------------------------
-- DDL for Table MAP_USER_AND_GROUP
--------------------------------------------------------
CREATE TABLE "MIRLE"."MAP_USER_AND_GROUP" ( "USER_ID" VARCHAR2(30 CHAR), "GROUP_NAME" VARCHAR2(50 BYTE), "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"."MAP_USER_AND_GROUP"."USER_ID" IS '使用者編號'; COMMENT ON COLUMN "MIRLE"."MAP_USER_AND_GROUP"."GROUP_NAME" IS '群組名稱'; COMMENT ON COLUMN "MIRLE"."MAP_USER_AND_GROUP"."CREATE_USER" IS '建立人員'; COMMENT ON COLUMN "MIRLE"."MAP_USER_AND_GROUP"."CREATE_TIME" IS '建立時間'; COMMENT ON COLUMN "MIRLE"."MAP_USER_AND_GROUP"."UPDATE_USER" IS '更新人員'; COMMENT ON COLUMN "MIRLE"."MAP_USER_AND_GROUP"."UPDATE_TIME" IS '更新時間'; COMMENT ON COLUMN "MIRLE"."MAP_USER_AND_GROUP"."STATUS" IS '資料狀態';
--------------------------------------------------------
-- DDL for Index MAP_USER_AND_GROUP_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "MIRLE"."MAP_USER_AND_GROUP_PK" ON "MIRLE"."MAP_USER_AND_GROUP" ("USER_ID", "GROUP_NAME") 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 MAP_USER_AND_GROUP
--------------------------------------------------------
ALTER TABLE "MIRLE"."MAP_USER_AND_GROUP" MODIFY ("USER_ID" NOT NULL ENABLE); ALTER TABLE "MIRLE"."MAP_USER_AND_GROUP" MODIFY ("GROUP_NAME" NOT NULL ENABLE); ALTER TABLE "MIRLE"."MAP_USER_AND_GROUP" MODIFY ("CREATE_USER" NOT NULL ENABLE); ALTER TABLE "MIRLE"."MAP_USER_AND_GROUP" MODIFY ("CREATE_TIME" NOT NULL ENABLE); ALTER TABLE "MIRLE"."MAP_USER_AND_GROUP" MODIFY ("UPDATE_USER" NOT NULL ENABLE); ALTER TABLE "MIRLE"."MAP_USER_AND_GROUP" MODIFY ("UPDATE_TIME" NOT NULL ENABLE); ALTER TABLE "MIRLE"."MAP_USER_AND_GROUP" MODIFY ("STATUS" NOT NULL ENABLE); ALTER TABLE "MIRLE"."MAP_USER_AND_GROUP" ADD CONSTRAINT "MAP_USER_AND_GROUP_PK" PRIMARY KEY ("USER_ID", "GROUP_NAME") 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;
|