pears.DeletedTagValue
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Description
Record of deleted tag data. Purpose to save time recovering data if tag deleted by mistake. Cleared after 6 months
Columns
| 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 | |
| taglocation | char(3) | NULL | ||
| tagid | char(3) | NULL | ||
| tagchoiceid | char(4) | NULL | ||
| tagvalueid | integer | NULL | ||
| id | char(20) | NULL | ||
| value | double | NULL | ||
| textvalue | long varchar | NULL |
Primary Key
- DeletedID
Foreign Keys
- No outgoing foreign keys found.
Referenced By
- No incoming foreign keys found.
Indexes
- No indexes found.
Triggers
- No triggers found.
Original SQL
-- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."DeletedTagValue" -- Table comment: Record of deleted tag data. Purpose to save time recovering data if tag deleted by mistake. Cleared after 6 months -- Statement count: 4 CREATE TABLE "pears"."DeletedTagValue" ( "DeletedID" INTEGER NOT NULL DEFAULT autoincrement ,"InstanceID" CHAR(20) NULL ,"WhenDeleted" DATE NULL ,"taglocation" CHAR(3) NULL ,"tagid" CHAR(3) NULL ,"tagchoiceid" CHAR(4) NULL ,"tagvalueid" INTEGER NULL ,"id" CHAR(20) NULL ,"value" DOUBLE NULL ,"textvalue" long VARCHAR NULL ,PRIMARY KEY ("DeletedID" ASC) ) GO COMMENT ON COLUMN "pears"."DeletedTagValue"."InstanceID" IS 'Group all deletes together' GO COMMENT ON COLUMN "pears"."DeletedTagValue"."WhenDeleted" IS 'Used by cleanup and if multiple deletes' GO COMMENT ON TABLE "pears"."DeletedTagValue" IS 'Record of deleted tag data. Purpose to save time recovering data if tag deleted by mistake. Cleared after 6 months' GO