--------------------------------------------------------
--  DDL for Table SRC_NLCORP_PRODUCTION_ACCOUNTS_RR_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SRC_NLCORP_PRODUCTION_ACCOUNTS_RR_TB" 
   (	"NAME" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"CUSTOMER" VARCHAR2(256 BYTE) COLLATE "USING_NLS_COMP", 
	"INTERNAL_ID" NUMBER, 
	"DATABASE" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"DATABASE_DESCRIPTION" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"LICENSE_START" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"LICENSE_END_NS" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"PAR_STATUS" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"PMR_UPGRADE_DATE" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"PMR_UPGRADE_TIME" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"PMR_NAME" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"PMR_ID" NUMBER, 
	"PMR_STATUS" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"DATABASE_PHASING_DESIGNATION" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"PMR_ACCOUNT_TYPE" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"PARENT_DB" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"METADATA_LICENSE_START_UTC" DATE, 
	"METADATA_LICENSE_END_NS_UTC" DATE, 
	"METADATA_PMR_UPGRADE_DATE_UTC" DATE, 
	"METADATA_PMR_UPGRADE_TIME_UTC" DATE, 
	"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_NLCORP_PRODUCTION_ACCOUNTS_RR_TB_PK
--------------------------------------------------------

  CREATE UNIQUE INDEX "OTHQ_OWN"."SRC_NLCORP_PRODUCTION_ACCOUNTS_RR_TB_PK" ON "OTHQ_OWN"."SRC_NLCORP_PRODUCTION_ACCOUNTS_RR_TB" ("INTERNAL_ID", "PMR_ID") 
  PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  TABLESPACE "DATA" ;
--------------------------------------------------------
--  Constraints for Table SRC_NLCORP_PRODUCTION_ACCOUNTS_RR_TB
--------------------------------------------------------

  ALTER TABLE "OTHQ_OWN"."SRC_NLCORP_PRODUCTION_ACCOUNTS_RR_TB" MODIFY ("INTERNAL_ID" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_NLCORP_PRODUCTION_ACCOUNTS_RR_TB" MODIFY ("PMR_ID" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_NLCORP_PRODUCTION_ACCOUNTS_RR_TB" ADD CONSTRAINT "SRC_NLCORP_PRODUCTION_ACCOUNTS_RR_TB_PK" PRIMARY KEY ("INTERNAL_ID", "PMR_ID")
  USING INDEX PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  TABLESPACE "DATA"  ENABLE;
