improve syncing and storing

This commit is contained in:
grimhilt
2023-03-29 16:23:24 +02:00
parent 94c7a7176b
commit e0482eb511
15 changed files with 245 additions and 347 deletions

View File

@@ -126,6 +126,7 @@ CREATE TABLE app_room (
notSeen INT NOT NULL DEFAULT 0,
lastUpdate TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(),
PRIMARY KEY (room_id),
UNIQUE KEY (owner_id, message_id, isGroup),
FOREIGN KEY (owner_id) REFERENCES address(address_id),
FOREIGN KEY (message_id) REFERENCES message(message_id)
);