Move notes to the Postgres database

This commit is contained in:
P0nk
2023-02-25 00:40:36 +01:00
parent f6f3c9c3e3
commit 12745c207d
6 changed files with 42 additions and 32 deletions

View File

@@ -0,0 +1,11 @@
CREATE TABLE note(
id serial NOT NULL,
receiver text NOT NULL,
sender text NOT NULL,
message text NOT NULL,
timestamp bigint NOT NULL,
fame smallint NOT NULL,
deleted smallint NOT NULL,
PRIMARY KEY (id)
);
GRANT SELECT, INSERT, UPDATE ON note TO ${server-username};