5 Commits

Author SHA1 Message Date
ddshi
11459b60d6 chore: 版本更新至 v0.2.0-alpha (P0+P1完成) 2026-01-29 16:45:23 +08:00
ddshi
747060af25 fix: 移除生产环境的数据库路径日志输出 (P1安全修复) 2026-01-29 16:43:55 +08:00
ddshi
fbff8cc230 feat: 添加SQLite本地数据库支持
- 移除Prisma中不支持SQLite的类型(Json、枚举)
- 使用String类型替代枚举值
- 更新Prisma schema适配SQLite
- 添加数据库初始化脚本scripts/init-db.js
- 更新数据库路径配置
- 添加sql.js依赖
- 删除旧的prisma.ts使用新的db.ts

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-29 16:33:55 +08:00
ddshi
e35bd77e06 feat: 初始化后端和认证API
- Express.js + TypeScript
- JWT认证系统 (bcryptjs加密)
- Prisma ORM (SQLite/PostgreSQL)
- Zod输入验证
- express-rate-limit限流

Co-Authored-By: Claude (MiniMax-M2.1) <noreply@anthropic.com>
2026-01-29 15:09:19 +08:00
ddshi
55627762e1 feat: complete backend API with JWT auth, events, notes, AI routes
- Add Express.js server with TypeScript
- Configure Prisma ORM with PostgreSQL schema
- Implement JWT authentication (register, login, logout, refresh)
- Add rate limiting for auth endpoints (10 attempts/15min)
- Password strength validation (8+ chars, uppercase, lowercase, number)
- Events CRUD API (anniversaries and reminders)
- Notes API (single note per user)
- AI parse endpoint with DeepSeek integration
- Security: Helmet, rate limiting, input validation, error handling
- Fix: JWT_SECRET environment variable validation

Code review: Architect approved
Tests: Build verified
2026-01-29 13:08:48 +08:00