--------------------------------------------------------
--  DDL for Table SRC_NLCORP_PLANNED_MAINTENANCE_RR_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SRC_NLCORP_PLANNED_MAINTENANCE_RR_TB" 
   (	"NAME" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"PAR_ACCOUNT_TYPE" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"PMR_ID" NUMBER, 
	"ACCOUNT" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"TYPE_OF_ACTION" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"DATABASE" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"NLCORP_UI_TIMESTAMP" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"PMR_NEW_DATE" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"PMR_OLD_DATE" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"PMR_HISTORY_ID" NUMBER, 
	"HOURS_FROM_OLD_SCHEDULE" NUMBER, 
	"CATEGORY" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"FROM_CONTEXT" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"HOURS_FROM_NEW_SCHEDULE" NUMBER, 
	"METADATA_NLCORP_UI_TIMESTAMP_UTC" DATE, 
	"METADATA_PMR_NEW_DATE_UTC" DATE, 
	"METADATA_PMR_OLD_DATE_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_PLANNED_MAINTENANCE_RR_TB_PK
--------------------------------------------------------

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

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