~~~BEGIN_MAIN_SECTION~~~
[PRODUCT]
table=SRC_PEM_PHRAG_METRICS_TB
~~~END_MAIN_SECTION~~~


~~~BEGIN_VERSION_SECTION~~~
[VERSION]
version=2025-12-019

[SQL_SCRIPT___DEFAULT]


--------------------------------------------------------
--  DDL for Table SRC_PEM_PHRAG_METRICS_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SRC_PEM_PHRAG_METRICS_TB" 
   (	"DDATE" DATE, 
	"HOUR" NUMBER, 
	"USER_EMAIL" VARCHAR2(128 BYTE) DEFAULT ON NULL '-',
	"MESSAGES" NUMBER, 
	"SESSIONS" NUMBER, 
	"THUMBS_UP" NUMBER, 
	"THUMBS_DOWN" NUMBER, 
	"TYPE" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP"
   )  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_PEM_PHRAG_METRICS_TB_PK
--------------------------------------------------------

  CREATE UNIQUE INDEX "OTHQ_OWN"."SRC_PEM_PHRAG_METRICS_TB_PK" ON "OTHQ_OWN"."SRC_PEM_PHRAG_METRICS_TB" ("DDATE", "HOUR", "USER_EMAIL", "TYPE") 
  PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  TABLESPACE "DATA" ;
--------------------------------------------------------
--  Constraints for Table SRC_PEM_PHRAG_METRICS_TB
--------------------------------------------------------

  ALTER TABLE "OTHQ_OWN"."SRC_PEM_PHRAG_METRICS_TB" MODIFY ("DDATE" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_PEM_PHRAG_METRICS_TB" MODIFY ("HOUR" NOT NULL ENABLE);
  --ALTER TABLE "OTHQ_OWN"."SRC_PEM_PHRAG_METRICS_TB" MODIFY ("USER_EMAIL" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_PEM_PHRAG_METRICS_TB" MODIFY ("TYPE" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_PEM_PHRAG_METRICS_TB" ADD CONSTRAINT "SRC_PEM_PHRAG_METRICS_TB_PK" PRIMARY KEY ("DDATE", "HOUR", "USER_EMAIL", "TYPE")
  USING INDEX PCTFREE 10 INITRANS 20 MAXTRANS 255 COMPUTE STATISTICS 
  TABLESPACE "DATA"  ENABLE;






~~~END_VERSION_SECTION~~~