--------------------------------------------------------
--  DDL for Table SRC_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SRC_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB" 
   (	"ID" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"COMPARTMENT_ID" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"DISPLAY_NAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"DEFINED_TAGS" VARCHAR2(512 BYTE) COLLATE "USING_NLS_COMP", 
	"FREEFORM_TAGS" VARCHAR2(512 BYTE) COLLATE "USING_NLS_COMP", 
	"LIFECYCLE_STATE" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"AVAILABILITY_DOMAIN" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"RESERVED_INSTANCE_COUNT" NUMBER, 
	"USED_INSTANCE_COUNT" NUMBER, 
	"IS_DEFAULT_RESERVATION" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP", 
	"TIME_CREATED" DATE, 
	"REGION" VARCHAR2(16 BYTE) COLLATE "USING_NLS_COMP", 
	"INSTANCE_RESERVATION_CONFIGS" VARCHAR2(2048 BYTE) COLLATE "USING_NLS_COMP", 
	"LAST_UPDATED" DATE
   )  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_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB_PK
--------------------------------------------------------

  CREATE UNIQUE INDEX "OTHQ_OWN"."SRC_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB_PK" ON "OTHQ_OWN"."SRC_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB" ("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" ;
--------------------------------------------------------
--  DDL for Trigger SRC_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB_LAST_UPDATED_TRIGGER
--------------------------------------------------------

  CREATE OR REPLACE EDITIONABLE TRIGGER "OTHQ_OWN"."SRC_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB_LAST_UPDATED_TRIGGER" 
BEFORE UPDATE OR INSERT ON SRC_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB
FOR EACH ROW
BEGIN
  :NEW.LAST_UPDATED := SYSTIMESTAMP;
END;

/
ALTER TRIGGER "OTHQ_OWN"."SRC_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB_LAST_UPDATED_TRIGGER" ENABLE;
--------------------------------------------------------
--  Constraints for Table SRC_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB
--------------------------------------------------------

  ALTER TABLE "OTHQ_OWN"."SRC_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB" MODIFY ("INSTANCE_RESERVATION_CONFIGS" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB" MODIFY ("ID" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SRC_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB" ADD CONSTRAINT "SRC_OCI_COMPUTE_CAPACITY_RESERVATIONS_TB_PK" PRIMARY KEY ("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;
