--------------------------------------------------------
--  DDL for Table DEPLOYMENT_REQ_HGROUP
--------------------------------------------------------

  CREATE TABLE "ENVX_OPER"."DEPLOYMENT_REQ_HGROUP" 
   (	"ID_REQ_HGROUP" VARCHAR2(20 BYTE), 
	"ID_PARENT_REQ_HGROUP" VARCHAR2(20 BYTE), 
	"ID_REQ_HGROUP_LEVEL" VARCHAR2(3 BYTE), 
	"ID_REAL_REQ_HGROUP" NUMBER(*,0), 
	"ID_REQ_HGROUP_REF" NUMBER(*,0), 
	"ID_REQUEST" NUMBER(*,0), 
	"REQ_HGROUP_ORDER" NUMBER(*,0), 
	"REQ_HGROUP_STATUS" VARCHAR2(30 BYTE), 
	"REQ_HGROUP_NAME" VARCHAR2(50 BYTE), 
	"TOTAL_MEMBERS" NUMBER, 
	"LAST_ORD_DEP_MEMBER" NUMBER, 
	"LAST_ID_DEP_MEMBER" NUMBER, 
	"LAST_STS_DEP_MEMBER" VARCHAR2(50 BYTE)
   ) SEGMENT CREATION IMMEDIATE 
  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 
 NOCOMPRESS 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 "APEX_3800503980117141" ;

   COMMENT ON COLUMN "ENVX_OPER"."DEPLOYMENT_REQ_HGROUP"."ID_REQ_HGROUP" IS 'Identificador compuesto por R+ID_REQUEST + REQ_GROUP_LEVEL + ID_REAL_REQ_GROUP';
   COMMENT ON COLUMN "ENVX_OPER"."DEPLOYMENT_REQ_HGROUP"."ID_PARENT_REQ_HGROUP" IS 'Referencia al ID_REQ_HGROUP';
   COMMENT ON COLUMN "ENVX_OPER"."DEPLOYMENT_REQ_HGROUP"."ID_REQ_HGROUP_LEVEL" IS 'R- Solicitud (request), T- Tecnologia, P- Patron';
   COMMENT ON COLUMN "ENVX_OPER"."DEPLOYMENT_REQ_HGROUP"."ID_REAL_REQ_HGROUP" IS 'Secuencia unica por registro';
   COMMENT ON COLUMN "ENVX_OPER"."DEPLOYMENT_REQ_HGROUP"."REQ_HGROUP_ORDER" IS 'orden de ejecucion para cada grupo de ambientes';
   COMMENT ON COLUMN "ENVX_OPER"."DEPLOYMENT_REQ_HGROUP"."REQ_HGROUP_NAME" IS 'Nombre del grupo, OPCIONAL';
   COMMENT ON COLUMN "ENVX_OPER"."DEPLOYMENT_REQ_HGROUP"."TOTAL_MEMBERS" IS 'Cantidad Total de miembros en el grupo';
   COMMENT ON COLUMN "ENVX_OPER"."DEPLOYMENT_REQ_HGROUP"."LAST_ORD_DEP_MEMBER" IS 'ordinal del ultimo miembro ejecutado en el despliegue';
   COMMENT ON COLUMN "ENVX_OPER"."DEPLOYMENT_REQ_HGROUP"."LAST_ID_DEP_MEMBER" IS 'identificador unico del ultimo control de ejecucion ';
   COMMENT ON COLUMN "ENVX_OPER"."DEPLOYMENT_REQ_HGROUP"."LAST_STS_DEP_MEMBER" IS 'ultimo estado obtenido con la ejecucion del despliegue en un miembro';
  GRANT SELECT ON "ENVX_OPER"."DEPLOYMENT_REQ_HGROUP" TO "ENVX_AUDIT";
