fix: sqlite schema comment

`event_hash` is the raw SHA256 hash of the event, not 4-byte hash.
This commit is contained in:
laanwj 2024-09-27 13:38:32 +02:00 committed by Greg Heartsfield
parent d71f5cb029
commit a6b48620fd

View File

@ -40,7 +40,7 @@ PRAGMA user_version = {};
-- Event Table -- Event Table
CREATE TABLE IF NOT EXISTS event ( CREATE TABLE IF NOT EXISTS event (
id INTEGER PRIMARY KEY, id INTEGER PRIMARY KEY,
event_hash BLOB NOT NULL, -- 4-byte hash event_hash BLOB NOT NULL, -- 32-byte SHA256 hash
first_seen INTEGER NOT NULL, -- when the event was first seen (not authored!) (seconds since 1970) first_seen INTEGER NOT NULL, -- when the event was first seen (not authored!) (seconds since 1970)
created_at INTEGER NOT NULL, -- when the event was authored created_at INTEGER NOT NULL, -- when the event was authored
expires_at INTEGER, -- when the event expires and may be deleted expires_at INTEGER, -- when the event expires and may be deleted