From 38e3ab57a6fd580e593754ee079fb1bcaec5264b Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Sat, 8 Oct 2022 03:23:21 -0700 Subject: [PATCH] Add the TurfWar schema --- net/turfwar/schema.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 net/turfwar/schema.sql diff --git a/net/turfwar/schema.sql b/net/turfwar/schema.sql new file mode 100644 index 000000000..f2cd1641d --- /dev/null +++ b/net/turfwar/schema.sql @@ -0,0 +1,8 @@ +CREATE TABLE land ( + ip INTEGER PRIMARY KEY, + nick TEXT NOT NULL, + created INTEGER +); + +CREATE INDEX land_by_name ON land (nick); +CREATE INDEX land_by_created ON land (created DESC) WHERE created NOT NULL;