--------------------------------------------------------
--  DDL for Table SRC_CSV_GITLAB_SDLC_MERGE_REQUESTS_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SRC_CSV_GITLAB_SDLC_MERGE_REQUESTS_TB" 
   (  "PROJECT_ID" NUMBER, 
  "MERGE_REQUEST_ID" NUMBER, 
  "MERGE_REQUEST_IID" NUMBER, 
  "TITLE" VARCHAR2(1024 BYTE) COLLATE "USING_NLS_COMP", 
  "DESCRIPTION" VARCHAR2(1024 BYTE) COLLATE "USING_NLS_COMP", 
  "NLCORP" NUMBER, 
  "JIRA" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
  "STATE" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP", 
  "MERGE_USER" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
  "MERGED_AT" DATE, 
  "CREATED_AT" DATE, 
  "AUTHOR" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
  "ASSIGNEE" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
  "SQUASH_ON_MERGE" VARCHAR2(5 BYTE) COLLATE "USING_NLS_COMP", 
  "WEB_URL" VARCHAR2(512 BYTE) COLLATE "USING_NLS_COMP", 
  "MERGE_COMMIT_SHA" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
  "BRANCH" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
  "DOWNLOAD_TIMESTAMP" DATE, 
  "LAST_COMMIT_DATE" DATE, 
  "CODE_REVIEW_TIME" NUMBER, 
  "INTEGRATION_TIME" NUMBER, 
  "WORKFLOW" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
  "PRECOMMIT_COUNT" NUMBER, 
  "PRECOMMIT_DURATION" NUMBER, 
  "METADATA_MANUALLY_CORRECTED" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP" DEFAULT 'False', 
  "OLD_INTEGRATION_TIME" NUMBER, 
  "OLD_CODE_REVIEW_TIME" NUMBER, 
  "OLD_PRECOMMIT_COUNT" NUMBER, 
  "OLD_PRECOMMIT_DURATION" NUMBER
   )  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_GITLAB_SDLC_MERGE_REQUESTS_TB_PK
--------------------------------------------------------

  CREATE UNIQUE INDEX "OTHQ_OWN"."SRC_CSV_GITLAB_SDLC_MERGE_REQUESTS_TB_PK" ON "OTHQ_OWN"."SRC_CSV_GITLAB_SDLC_MERGE_REQUESTS_TB" ("DOWNLOAD_TIMESTAMP", "MERGE_REQUEST_ID") 
  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_GITLAB_SDLC_MERGE_REQUESTS_TB
--------------------------------------------------------

  ALTER TABLE "OTHQ_OWN"."SRC_CSV_GITLAB_SDLC_MERGE_REQUESTS_TB" ADD CONSTRAINT "SRC_CSV_GITLAB_SDLC_MERGE_REQUESTS_TB_PK" PRIMARY KEY ("DOWNLOAD_TIMESTAMP", "MERGE_REQUEST_ID")
  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;
  ALTER TABLE "OTHQ_OWN"."SRC_CSV_GITLAB_SDLC_MERGE_REQUESTS_TB" MODIFY ("DOWNLOAD_TIMESTAMP" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CSV_GITLAB_SDLC_MERGE_REQUESTS_TB" MODIFY ("METADATA_MANUALLY_CORRECTED" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_CSV_GITLAB_SDLC_MERGE_REQUESTS_TB" MODIFY ("MERGE_REQUEST_ID" NOT NULL ENABLE);
