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.
 
 
 
 
 

64 lines
3.1 KiB

--------------------------------------------------------
-- DDL for Table CFG_USER
--------------------------------------------------------
CREATE TABLE "MIRLE"."CFG_USER"
(
"USER_ID" VARCHAR2(30 CHAR),
"USER_NAME" VARCHAR2(50 CHAR),
"USER_PASSWORD" VARCHAR2(40 CHAR),
"USER_DEPT" VARCHAR2(10 CHAR)
"USER_EMAIL" VARCHAR2(64 CHAR),
"CREATE_USER" VARCHAR2(30 CHAR),
"CREATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
"UPDATE_USER" VARCHAR2(20 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_USER"."USER_ID" IS '使用者編號';
COMMENT ON COLUMN "MIRLE"."CFG_USER"."USER_NAME" IS '使用者名稱';
COMMENT ON COLUMN "MIRLE"."CFG_USER"."USER_PASSWORD" IS '使用者密碼';
COMMENT ON COLUMN "MIRLE"."CFG_USER"."USER_DEPT" IS '使用者部門代碼';
COMMENT ON COLUMN "MIRLE"."CFG_USER"."USER_EMAIL" IS '使用者郵件';
COMMENT ON COLUMN "MIRLE"."CFG_USER"."CREATE_USER" IS '建立人員';
COMMENT ON COLUMN "MIRLE"."CFG_USER"."CREATE_TIME" IS '建立時間';
COMMENT ON COLUMN "MIRLE"."CFG_USER"."UPDATE_USER" IS '更新人員';
COMMENT ON COLUMN "MIRLE"."CFG_USER"."UPDATE_TIME" IS '更新時間';
COMMENT ON COLUMN "MIRLE"."CFG_USER"."STATUS" IS '資料狀態';
--------------------------------------------------------
-- DDL for Index CFG_USER_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "MIRLE"."CFG_USER_PK" ON "MIRLE"."CFG_USER" ("USER_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_USER
--------------------------------------------------------
ALTER TABLE "MIRLE"."CFG_USER" MODIFY ("USER_ID" NOT NULL ENABLE);
ALTER TABLE "MIRLE"."CFG_USER" MODIFY ("USER_PASSWORD" NOT NULL ENABLE);
ALTER TABLE "MIRLE"."CFG_USER" MODIFY ("CREATE_USER" NOT NULL ENABLE);
ALTER TABLE "MIRLE"."CFG_USER" MODIFY ("CREATE_TIME" NOT NULL ENABLE);
ALTER TABLE "MIRLE"."CFG_USER" MODIFY ("UPDATE_USER" NOT NULL ENABLE);
ALTER TABLE "MIRLE"."CFG_USER" MODIFY ("UPDATE_TIME" NOT NULL ENABLE);
ALTER TABLE "MIRLE"."CFG_USER" MODIFY ("STATUS" NOT NULL ENABLE);
ALTER TABLE "MIRLE"."CFG_USER" ADD CONSTRAINT "CFG_USER_PK" PRIMARY KEY ("USER_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;