-- created by Oraschemadoc Fri Jun 13 14:05:52 2008
-- visit http://www.yarpen.cz/oraschemadoc/ for more info

  CREATE TABLE "RHNSAT"."RHNERRATATMP" 
   (	"ID" NUMBER CONSTRAINT "RHN_ERRATATMP_ID_NN" NOT NULL ENABLE, 
	"ADVISORY" VARCHAR2(32) CONSTRAINT "RHN_ERRATATMP_ADVISORY_NN" NOT NULL ENABLE, 
	"ADVISORY_TYPE" VARCHAR2(32) CONSTRAINT "RHN_ERRATATMP_ADV_TYPE_NN" NOT NULL ENABLE, 
	"ADVISORY_NAME" VARCHAR2(32) CONSTRAINT "RHN_ERRATATMP_ADVISORY_NAME_NN" NOT NULL ENABLE, 
	"ADVISORY_REL" NUMBER CONSTRAINT "RHN_ERRATATMP_ADVISORY_REL_NN" NOT NULL ENABLE, 
	"PRODUCT" VARCHAR2(64), 
	"DESCRIPTION" VARCHAR2(4000), 
	"SYNOPSIS" VARCHAR2(4000), 
	"TOPIC" VARCHAR2(4000), 
	"SOLUTION" VARCHAR2(4000), 
	"ISSUE_DATE" DATE DEFAULT (sysdate) CONSTRAINT "RHN_ERRATATMP_ISSUE_NN" NOT NULL ENABLE, 
	"UPDATE_DATE" DATE DEFAULT (sysdate) CONSTRAINT "RHN_ERRATATMP_UPDATE_NN" NOT NULL ENABLE, 
	"REFERS_TO" VARCHAR2(4000), 
	"NOTES" VARCHAR2(4000), 
	"ORG_ID" NUMBER, 
	"LOCALLY_MODIFIED" CHAR(1), 
	"CREATED" DATE DEFAULT (sysdate) CONSTRAINT "RHN_ERRATATMP_CREATED_NN" NOT NULL ENABLE, 
	"MODIFIED" DATE DEFAULT (sysdate) CONSTRAINT "RHN_ERRATATMP_MODIFIED_NN" NOT NULL ENABLE, 
	"LAST_MODIFIED" DATE DEFAULT (sysdate) CONSTRAINT "RHN_ERRATATMP_LAST_MOD_NN" NOT NULL ENABLE, 
	 CONSTRAINT "RHN_ERRATATMP_ADV_TYPE_CK" CHECK (advisory_type in ('Bug Fix Advisory',
				                            'Product Enhancement Advisory',
							    'Security Advisory')) ENABLE, 
	 CONSTRAINT "RHN_ERRATATMP_LM_CK" CHECK (locally_modified in ('Y','N')) ENABLE, 
	 CONSTRAINT "RHN_ERRATATMP_ID_PK" PRIMARY KEY ("ID")
  USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
  TABLESPACE "DATA_TBS"  ENABLE, 
	 CONSTRAINT "RHN_ERRATATMP_OID_FK" FOREIGN KEY ("ORG_ID")
	  REFERENCES "RHNSAT"."WEB_CUSTOMER" ("ID") ON DELETE CASCADE ENABLE
   ) PCTFREE 10 PCTUSED 40 INITRANS 32 MAXTRANS 255 NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 16 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
  TABLESPACE "DATA_TBS" 
 
/
