--------------------------------------------------------
--  DDL for Table SRC_CSV_HORIZON_CATEGORY_MAPPING_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SRC_CSV_HORIZON_CATEGORY_MAPPING_TB" 
   (	"SERVICE" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"RESOURCE_NAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"SERVICERESOURCE_NAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"DETAILED_GROUPING" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"HIGHLEVEL_GROUPING" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
	"FINANCE_GROUPING" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"GROUPING" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"SKU" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"BILLED_USAGE_UNIT" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP"
   )  DEFAULT COLLATION "USING_NLS_COMP" SEGMENT CREATION IMMEDIATE 
  PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 
 COLUMN STORE COMPRESS FOR QUERY HIGH ROW LEVEL LOCKING LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "DATA" ;

--------------------------------------------------------
--  DDL for Index SRC_CSV_HORIZON_CATEGORY_MAPPING_TB_PK
--------------------------------------------------------

  CREATE UNIQUE INDEX "OTHQ_OWN"."SRC_CSV_HORIZON_CATEGORY_MAPPING_TB_PK" ON "OTHQ_OWN"."SRC_CSV_HORIZON_CATEGORY_MAPPING_TB" ("SERVICE", "RESOURCE_NAME", "SKU", "BILLED_USAGE_UNIT") 
  PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "DATA" ;
--------------------------------------------------------
--  Constraints for Table SRC_CSV_HORIZON_CATEGORY_MAPPING_TB
--------------------------------------------------------

  ALTER TABLE "OTHQ_OWN"."SRC_CSV_HORIZON_CATEGORY_MAPPING_TB" MODIFY ("SERVICE" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CSV_HORIZON_CATEGORY_MAPPING_TB" MODIFY ("RESOURCE_NAME" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CSV_HORIZON_CATEGORY_MAPPING_TB" MODIFY ("SKU" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CSV_HORIZON_CATEGORY_MAPPING_TB" MODIFY ("BILLED_USAGE_UNIT" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CSV_HORIZON_CATEGORY_MAPPING_TB" ADD CONSTRAINT "SRC_CSV_HORIZON_CATEGORY_MAPPING_TB_PK" PRIMARY KEY ("SERVICE", "RESOURCE_NAME", "SKU", "BILLED_USAGE_UNIT")
  USING INDEX PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "DATA"  ENABLE;
