mlblive-mastodon-scripts/schema.sql

16 lines
328 B
MySQL
Raw Normal View History

2024-08-01 01:04:31 +00:00
create table if not exists mlbdata (
2024-07-25 02:17:36 +00:00
"json" text unique on conflict ignore,
"posted" integer check ("posted" in (0, 1))
);
2024-08-01 01:04:31 +00:00
create index if not exists nonposted
on mlbdata(posted)
2024-07-25 02:17:36 +00:00
where posted = 0;
2024-08-03 20:39:24 +00:00
create table if not exists games (
gamePk integer,
teamId text,
state text,
unique (teamId, gamePk) on conflict replace
);