--------------------------------------------------------
--  DDL for Table SRC_AL_ALLDEMOACCOUNTS_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SRC_AL_ALLDEMOACCOUNTS_TB" 
   (	"ACCOUNTNAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"DBTYPE" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
	"CREATEDDATE" DATE, 
	"PROVISIONEDDATE" DATE, 
	"PROVISIONEREMAIL" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"OWNEREMAIL" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"MASTERACCOUNTNAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"MASTER" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
	"MASTERID" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
	"MASTERNAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"DATESHIFTING" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
	"ACTIVE" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
	"USABLE" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
	"LASTLOGIN" DATE, 
	"DCID" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
	"SIZEINMB" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
	"PURGEPOLICYCODE" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
	"EXPIRYDATE" DATE, 
	"WARNINGSINACTIVATE" NUMBER(38,0), 
	"WARNINGSPURGE" NUMBER(38,0), 
	"PURGESTATE" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
	"PURGEDDATE" DATE, 
	"LASTREFRESHDATE" DATE, 
	"SOURCEMASTERID" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
	"REGION" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"ENDPOINT" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"METADATA_DOWNLOADED_TIMESTAMP_UTC" DATE
   )  DEFAULT COLLATION "USING_NLS_COMP" SEGMENT CREATION DEFERRED 
  PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 
 COLUMN STORE COMPRESS FOR QUERY HIGH ROW LEVEL LOCKING LOGGING
  TABLESPACE "DATA" ;
--------------------------------------------------------
--  DDL for Index SRC_AL_ALLDEMOACCOUNTS_TB_PK1
--------------------------------------------------------

  CREATE UNIQUE INDEX "OTHQ_OWN"."SRC_AL_ALLDEMOACCOUNTS_TB_PK1" ON "OTHQ_OWN"."SRC_AL_ALLDEMOACCOUNTS_TB" ("ACCOUNTNAME", "REGION", "ENDPOINT") 
  PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  TABLESPACE "DATA" ;
--------------------------------------------------------
--  Constraints for Table SRC_AL_ALLDEMOACCOUNTS_TB
--------------------------------------------------------

  ALTER TABLE "OTHQ_OWN"."SRC_AL_ALLDEMOACCOUNTS_TB" ADD CONSTRAINT "SRC_AL_ALLDEMOACCOUNTS_TB_PK" PRIMARY KEY ("REGION", "ENDPOINT", "ACCOUNTNAME")
  USING INDEX "OTHQ_OWN"."SRC_AL_ALLDEMOACCOUNTS_TB_PK1"  ENABLE;
  ALTER TABLE "OTHQ_OWN"."SRC_AL_ALLDEMOACCOUNTS_TB" MODIFY ("ACCOUNTNAME" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_AL_ALLDEMOACCOUNTS_TB" MODIFY ("REGION" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_AL_ALLDEMOACCOUNTS_TB" MODIFY ("ENDPOINT" NOT NULL ENABLE);
