plura/migrations/20250614172833_message_logging.sql
Suya1671 c6135a629d
feat: add message logging
When a message is created or deleted, a log entry is created in the database.
This will later be used to track who created which messages and provide the ability to edit and delete messages in the future
2025-06-14 21:11:53 +02:00

6 lines
196 B
SQL

-- Add migration script here
CREATE TABLE message_logs (
id INTEGER NOT NULL PRIMARY KEY,
member_id INTEGER NOT NULL REFERENCES members (id),
message_id TEXT UNIQUE NOT NULL
) STRICT;