Create Initial Database Schema for Tasks. (#1)

Create migration scripts for this and initial Task DB Model in rust along with unit tests.

Reviewed-on: #1
Co-authored-by: Drew Galbraith <drew@tiramisu.one>
Co-committed-by: Drew Galbraith <drew@tiramisu.one>
This commit is contained in:
Drew 2025-08-24 17:10:31 +00:00 committed by Drew
parent c2b7c12905
commit 82d524a62f
13 changed files with 1923 additions and 15 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