-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e102658
commit 5122937
Showing
4 changed files
with
406 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CREATE TABLE IF NOT EXISTS event (id text NOT NULL, pubkey text NOT NULL, created_at integer NOT NULL, kind integer NOT NULL, tags jsonb NOT NULL, content text NOT NULL, sig text NOT NULL); | ||
CREATE UNIQUE INDEX IF NOT EXISTS ididx ON event(id); | ||
CREATE INDEX IF NOT EXISTS pubkeyprefix ON event(pubkey); | ||
CREATE INDEX IF NOT EXISTS timeidx ON event(created_at DESC); | ||
CREATE INDEX IF NOT EXISTS kindidx ON event(kind); | ||
CREATE INDEX IF NOT EXISTS kindtimeidx ON event(kind,created_at DESC); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.