diff --git a/sql/dbschema.sql b/sql/dbschema.sql index 7c81216..936a0df 100644 --- a/sql/dbschema.sql +++ b/sql/dbschema.sql @@ -47,7 +47,7 @@ CREATE TABLE "updates" ( "svn" TEXT, -- version info from field "pubDate" INTEGER, -- published date "publisher" TEXT, -- publisher - "fwId" TEXT, -- + "fwId" TEXT, -- (CHANGES FOR THE SAME FILE_ID!!!) MAYBE MOVE TO update_map "file_id" TEXT, -- of first file "file_name" TEXT, -- filename of first file "file_size" INTEGER, -- size of first file @@ -59,5 +59,6 @@ CREATE TABLE "updates" ( -- Maps update files to devices CREATE TABLE "update_map" ( "deviceId" INTEGER REFERENCES "devices" ("deviceId"), - "updateId" INTEGER REFERENCES "updates" ("updateId") + "updateId" INTEGER REFERENCES "updates" ("updateId"), + "seenDate" INTEGER -- timestamp when this record was added );