Initial sqlite schema.

This commit is contained in:
Drew 2025-08-22 19:20:18 -07:00
parent c2b7c12905
commit 3a7d28030d
7 changed files with 1305 additions and 14 deletions

View file

@ -1,6 +1,8 @@
# Temporary until we have a frontend.
set working-directory := 'backend'
export DATABASE_URL :="sqlite://local.db"
dev:
cargo run
@ -20,3 +22,14 @@ clean:
cargo clean
reset-db:
sqlx database drop
sqlx database create
sqlx migrate run
migrate:
sqlx migrate run
migrate-revert:
sqlx migrate revert