mlblive-mastodon-scripts/schema.sql

18 lines
420 B
MySQL
Raw Normal View History

2024-07-27 01:03:39 +00:00
create table if not exists plays (
2024-07-25 02:17:36 +00:00
"json" text unique on conflict ignore,
"posted" integer check ("posted" in (0, 1))
);
2024-07-27 01:03:39 +00:00
create index if not exists nonposted_plays
on plays(posted)
2024-07-25 02:17:36 +00:00
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;