====== pears.DeletedTagCompliance ====== 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 | | tagComplianceid | char(20) | NULL | | | | taglocation | char(3) | NULL | | | | tagid | char(3) | NULL | | | | SMS | long varchar | NULL | | | | Email | 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"."DeletedTagCompliance" -- 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"."DeletedTagCompliance" ( "DeletedID" integer NOT NULL DEFAULT autoincrement ,"InstanceID" char(20) NULL ,"WhenDeleted" date NULL ,"tagComplianceid" char(20) NULL ,"taglocation" char(3) NULL ,"tagid" char(3) NULL ,"SMS" long varchar NULL ,"Email" long varchar NULL ,PRIMARY KEY ("DeletedID" ASC) ) go COMMENT ON COLUMN "pears"."DeletedTagCompliance"."InstanceID" IS 'Group all deletes together' go COMMENT ON COLUMN "pears"."DeletedTagCompliance"."WhenDeleted" IS 'Used by cleanup and if multiple deletes' go COMMENT ON TABLE "pears"."DeletedTagCompliance" IS 'Record of deleted tag data. Purpose to save time recovering data if tag deleted by mistake. Cleared after 6 months' go