Adding comment into DB

This commit is contained in:
2022-06-18 00:19:25 +02:00
parent 9b6a7718f4
commit 4be55cdb23
5 changed files with 91 additions and 49 deletions

View File

@ -25,6 +25,8 @@ CREATE TABLE IF NOT EXISTS "Comments" (
"User" INTEGER NOT NULL,
"Page" TEXT NOT NULL,
"Reply" INTEGER,
"Date" INTEGER NOT NULL,
"Comment" TEXT NOT NULL,
PRIMARY KEY("ID" AUTOINCREMENT),
FOREIGN KEY("Page") REFERENCES "Pages"("ID"),
FOREIGN KEY("User") REFERENCES "Users"("ID")