@echo off
echo Fixing better-sqlite3 for Windows...

cd backend

echo Removing old better-sqlite3...
rmdir /s /q node_modules\better-sqlite3 2>nul

echo Reinstalling better-sqlite3...
npm install better-sqlite3 --build-from-source

echo Done!
pause