Basic Architecture of Sport Web

This commit is contained in:
Nông Đức Huy
2026-08-11 13:37:25 +07:00
commit 8032fff6ac
262 changed files with 20348 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
#
# Destroy and rebuild the local database. Local development only.
#
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
cd "$ROOT"
printf "\033[33mThis deletes every row in the local database. Continue? [y/N] \033[0m"
read -r reply
[[ "$reply" =~ ^[Yy]$ ]] || { echo "Aborted."; exit 0; }
pnpm --filter @sport/api exec prisma migrate reset --force
printf "\033[32mDatabase reset and reseeded.\033[0m\n"