Files
AIclinicalresearch/backend/sync-dc-database.ps1
HaHafeng ef967d7d7c build(backend): Complete Node.js backend deployment preparation
Major changes:
- Add Docker configuration (Dockerfile, .dockerignore)
- Fix 200+ TypeScript compilation errors
- Add Prisma schema relations for all models (30+ relations)
- Update tsconfig.json to relax non-critical checks
- Optimize Docker build with local dist strategy

Technical details:
- Exclude test files from TypeScript compilation
- Add manual relations for ASL, PKB, DC, AIA modules
- Use type assertions for JSON/Buffer compatibility
- Fix pg-boss, extractionWorker, and other legacy code issues

Build result:
- Docker image: 838MB (compressed ~186MB)
- Successfully pushed to ACR
- Zero TypeScript compilation errors

Related docs:
- Update deployment documentation
- Add Python microservice SAE deployment guide
2025-12-24 22:12:00 +08:00

54 lines
716 B
PowerShell
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# DC模块数据库同步脚本
Write-Host "====================================" -ForegroundColor Cyan
Write-Host "DC模块数据库表同步" -ForegroundColor Cyan
Write-Host "====================================" -ForegroundColor Cyan
Write-Host ""
Set-Location $PSScriptRoot
Write-Host "1⃣ 生成Prisma Client..." -ForegroundColor Yellow
npm run prisma:generate
Write-Host ""
Write-Host "2⃣ 推送Schema到数据库..." -ForegroundColor Yellow
npx prisma db push --accept-data-loss
Write-Host ""
Write-Host "3⃣ 检查表是否创建成功..." -ForegroundColor Yellow
npx tsx check-dc-database.ts
Write-Host ""
Write-Host "✅ 完成!" -ForegroundColor Green