--------------------------------------------------------
--  DDL for Table SRC_CSM_MAINTENANCE_INTERVENTION_ANALYTICS_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SRC_CSM_MAINTENANCE_INTERVENTION_ANALYTICS_TB" 
   (  "DATABASEID" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
  "ACCOUNTNAME" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
  "DATABASETYPE" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
  "PMRID" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
  "ROLLBACKINTERVENTIONCOUNT" NUMBER, 
  "ROLLFORWARDINTERVENTIONCOUNT" NUMBER, 
  "POSTINTERVENTIONCOUNT" NUMBER, 
  "NKEY" NUMBER, 
  "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_CSM_MAINTENANCE_INTERVENTION_ANALYTICS_TB_PK
--------------------------------------------------------

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

  ALTER TABLE "OTHQ_OWN"."SRC_CSM_MAINTENANCE_INTERVENTION_ANALYTICS_TB" MODIFY ("NKEY" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CSM_MAINTENANCE_INTERVENTION_ANALYTICS_TB" MODIFY ("REGION" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CSM_MAINTENANCE_INTERVENTION_ANALYTICS_TB" MODIFY ("ENDPOINT" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CSM_MAINTENANCE_INTERVENTION_ANALYTICS_TB" ADD CONSTRAINT "SRC_CSM_MAINTENANCE_INTERVENTION_ANALYTICS_TB_PK" PRIMARY KEY ("NKEY", "REGION", "ENDPOINT")
  USING INDEX PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  TABLESPACE "DATA"  ENABLE;
