migrations

This commit is contained in:
dylan
2023-10-31 20:31:17 -07:00
parent c55a9e8b98
commit 334c09df7c
5 changed files with 19 additions and 3 deletions

View File

@ -1,4 +1,5 @@
CREATE TABLE users (
id text,
username text
name text,
password text
)

View File

@ -0,0 +1,8 @@
CREATE TABLE games (
id text,
name text, -- user defined
repo_fullname text, -- e.g. "username/reponame"
repo_hosttype text, -- "github", "gitea", "gitlab", ...
repo_token text, -- an api auth token to read from the repo
user_id text
)

View File

@ -0,0 +1,7 @@
CREATE TABLE game_instances (
id text,
game_id text,
cart_data text,
created_at time,
is_official boolean
)