--------------------------------------------------------
--  DDL for Table SRC_CSM_NETSUITE_RELEASE_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SRC_CSM_NETSUITE_RELEASE_TB" 
   (  "NKEY" NUMBER(38,0), 
  "DATACENTER" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
  "ACCOUNTNAME" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
  "DATABASEID" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
  "DATABASETYPE" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
  "DATABASEHOST" VARCHAR2(256 BYTE) COLLATE "USING_NLS_COMP", 
  "MIGRATEVERSION" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
  "STAGE" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
  "STATUS" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
  "PMRID" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
  "ISPMRSTATUSSYNCED" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
  "ISVALIDANALYTICSROW" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
  "TARGETMAINSTARTTIME" DATE, 
  "PREPSTEPDURATION" NUMBER(38,0), 
  "MAINSTEPDURATION" NUMBER(38,0), 
  "PLANNEDCUSTOMERDOWNTIME" NUMBER(38,0), 
  "DATABASEOFFLINETIMESTAMPINUTC" DATE, 
  "DATABASEONLINETIMESTAMPINUTC" DATE, 
  "COLDMIGRATESTART" DATE, 
  "COLDMIGRATEEND" DATE, 
  "COLDMIGRATEDURATION" NUMBER(38,0), 
  "POSTMIGRATEDURATION" NUMBER(38,0), 
  "ERRORTEXT" VARCHAR2(1024 BYTE) COLLATE "USING_NLS_COMP", 
  "PREPSTAGEERRORMESSAGE" VARCHAR2(1024 BYTE) COLLATE "USING_NLS_COMP", 
  "MAINSTAGEERRORMESSAGE" VARCHAR2(1024 BYTE) COLLATE "USING_NLS_COMP", 
  "POSTSTAGEERRORMESSAGE" VARCHAR2(1024 BYTE) COLLATE "USING_NLS_COMP", 
  "ROLLBACKSTAGEERRORMESSAGE" VARCHAR2(1024 BYTE) COLLATE "USING_NLS_COMP", 
  "ROLLFORWARDSTAGEERRORMESSAGE" VARCHAR2(1024 BYTE) COLLATE "USING_NLS_COMP", 
  "CANCELSTAGEERRORMESSAGE" VARCHAR2(1024 BYTE) COLLATE "USING_NLS_COMP", 
  "SOURCECDBUNIQUENAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
  "TARGETCDBUNIQUENAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
  "ORA_CODES" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
  "ERROR_CLASS" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
  "ANALYZED_TEXT" VARCHAR2(4096 BYTE) COLLATE "USING_NLS_COMP", 
  "HARDWARETYPE" VARCHAR2(26 BYTE) COLLATE "USING_NLS_COMP", 
  "METADATA_REGION" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
  "METADATA_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_CSM_NETSUITE_RELEASE_TB_PK
--------------------------------------------------------

  CREATE UNIQUE INDEX "OTHQ_OWN"."SRC_CSM_NETSUITE_RELEASE_TB_PK" ON "OTHQ_OWN"."SRC_CSM_NETSUITE_RELEASE_TB" ("NKEY", "METADATA_REGION", "METADATA_ENDPOINT") 
  PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  TABLESPACE "DATA" ;
--------------------------------------------------------
--  Constraints for Table SRC_CSM_NETSUITE_RELEASE_TB
--------------------------------------------------------

  ALTER TABLE "OTHQ_OWN"."SRC_CSM_NETSUITE_RELEASE_TB" MODIFY ("NKEY" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CSM_NETSUITE_RELEASE_TB" MODIFY ("METADATA_REGION" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CSM_NETSUITE_RELEASE_TB" MODIFY ("METADATA_ENDPOINT" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CSM_NETSUITE_RELEASE_TB" ADD CONSTRAINT "SRC_CSM_NETSUITE_RELEASE_TB_PK" PRIMARY KEY ("NKEY", "METADATA_REGION", "METADATA_ENDPOINT")
  USING INDEX PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  TABLESPACE "DATA"  ENABLE;
