project_root := justfile_directory() backend_dir := project_root + "/Backend" # Apply embedded database migrations. migrate-up: cd '{{backend_dir}}' && go run ./cmd/migrate up # Roll back the most recent embedded database migration. migrate-down: cd '{{backend_dir}}' && go run ./cmd/migrate down # Reset all embedded database migrations and reapply from scratch. migrate-reset: cd '{{backend_dir}}' && go run ./cmd/migrate reset # Show the embedded database migration status. migrate-status: cd '{{backend_dir}}' && go run ./cmd/migrate status # Format backend Go source files. fmt: cd '{{backend_dir}}' && gofmt -w ./cmd ./db ./internal # Run backend test suite. test: cd '{{backend_dir}}' && go test ./...