From 4655a838917a3d9feb8470e6b1d1e81d6025ce55 Mon Sep 17 00:00:00 2001 From: filifa Date: Sat, 3 Aug 2024 17:32:21 -0500 Subject: [PATCH] test out one db --- schema.sql | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/schema.sql b/schema.sql index 5b8d039..536ce33 100644 --- a/schema.sql +++ b/schema.sql @@ -1,10 +1,19 @@ -create table if not exists mlbdata ( +create table if not exists plays ( "json" text unique on conflict ignore, "posted" integer check ("posted" in (0, 1)) ); -create index if not exists nonposted -on mlbdata(posted) +create index if not exists nonposted_plays +on plays(posted) +where posted = 0; + +create table if not exists highlights ( + "json" text unique on conflict ignore, + "posted" integer check ("posted" in (0, 1)) +); + +create index if not exists nonposted_highlights +on highlights(posted) where posted = 0; create table if not exists games (