Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Record of deleted Criterion data. Purpose to save time recovering data if tag deleted by mistake. Cleared after 6 months
| Column | Type | Null | Default | Comment | |
|---|---|---|---|---|---|
| DeletedID | integer | NOT NULL | autoincrement | ||
| InstanceID | char(20) | NULL | Group all deletes together | ||
| WhenDeleted | date | NULL | Used by cleanup and if multiple deletes | ||
| searchlocation | char(3) | NULL | Type of parent record which has id as its pk | ||
| id | char(20) | NULL | ID of parent record | ||
| critid | binary(20) | NULL | ID and location of this criterion | ||
| sourcelocation | char(3) | NOT NULL | Dictionarylocation or Taglocation | ||
| dictionaryid | char(20) | NULL | If dictionary criterion else null | ||
| tagid | char(3) | NULL | If tag criterion else null | ||
| tagchoiceid | char(4) | NULL | |||
| notflag | smallint | NULL | 1 if not | ||
| matchtype | char(1) | NULL | =equals, -range, | starts with, *contains, }ge, {le | |
| textvalue | char(250) | NULL | |||
| value | double | NULL | |||
| uppervalue | double | NULL | For ranges | ||
| taganytotal | smallint | NULL | +ve for any, any 2 etc. on lists, -1 indicates total for scored list criteria | ||
| extravalue | double | NULL | For extra date/time ranges | ||
| extrauppervalue | double | NULL | For extra date/time ranges | ||
| extramatchtype | char(1) | NULL | For extra date/time ranges =equals, -range, }ge, {le | ||
| TextIndexedField | char(50) | NULL | For text index search would contain values like person.cvtext |
-- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."DeletedCriterion" -- Table comment: Record of deleted Criterion data. Purpose to save time recovering data if tag deleted by mistake. Cleared after 6 months -- Statement count: 18 CREATE TABLE "pears"."DeletedCriterion" ( "DeletedID" INTEGER NOT NULL DEFAULT autoincrement ,"InstanceID" CHAR(20) NULL ,"WhenDeleted" DATE NULL ,"searchlocation" CHAR(3) NULL ,"id" CHAR(20) NULL ,"critid" BINARY(20) NULL ,"sourcelocation" CHAR(3) NOT NULL ,"dictionaryid" CHAR(20) NULL ,"tagid" CHAR(3) NULL ,"tagchoiceid" CHAR(4) NULL ,"notflag" SMALLINT NULL ,"matchtype" CHAR(1) NULL ,"textvalue" CHAR(250) NULL ,"value" DOUBLE NULL ,"uppervalue" DOUBLE NULL ,"taganytotal" SMALLINT NULL ,"extravalue" DOUBLE NULL ,"extrauppervalue" DOUBLE NULL ,"extramatchtype" CHAR(1) NULL ,"TextIndexedField" CHAR(50) NULL ,PRIMARY KEY ("DeletedID" ASC) ) GO COMMENT ON COLUMN "pears"."DeletedCriterion"."InstanceID" IS 'Group all deletes together' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."WhenDeleted" IS 'Used by cleanup and if multiple deletes' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."searchlocation" IS 'Type of parent record which has id as its pk' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."id" IS 'ID of parent record' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."critid" IS 'ID and location of this criterion' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."sourcelocation" IS 'Dictionarylocation or Taglocation' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."dictionaryid" IS 'If dictionary criterion else null' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."tagid" IS 'If tag criterion else null' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."notflag" IS '1 if not' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."matchtype" IS '=equals, -range, |starts with, *contains, }ge, {le' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."uppervalue" IS 'For ranges' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."taganytotal" IS '+ve for any, any 2 etc. on lists, -1 indicates total for scored list criteria' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."extravalue" IS 'For extra date/time ranges' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."extrauppervalue" IS 'For extra date/time ranges' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."extramatchtype" IS 'For extra date/time ranges =equals, -range, }ge, {le' GO COMMENT ON COLUMN "pears"."DeletedCriterion"."TextIndexedField" IS 'For text index search would contain values like person.cvtext' GO COMMENT ON TABLE "pears"."DeletedCriterion" IS 'Record of deleted Criterion data. Purpose to save time recovering data if tag deleted by mistake. Cleared after 6 months' GO