mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-12-04 12:59:07 -05:00
fix: sqlite schema comment
`event_hash` is the raw SHA256 hash of the event, not 4-byte hash.
This commit is contained in:
parent
d71f5cb029
commit
a6b48620fd
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user