feat: migrate from PocketBase to PostgreSQL with Drizzle ORM

- Add @project-e/db package with Drizzle schema and migrations
- Replace PocketBase client with PostgreSQL-based database client
- Migrate auth from custom to NextAuth.js
- Add Docker Compose with PostgreSQL container
- Update worker to use new database client
- Remove PocketBase-specific files and migrations
- Add drizzle config and initial migration
This commit is contained in:
2026-07-24 07:08:29 -04:00
parent 6c438eab32
commit 73335484f8
42 changed files with 2895 additions and 2796 deletions
+6 -1
View File
@@ -16,6 +16,7 @@
"@dnd-kit/utilities": "^3.2.2",
"@hookform/resolvers": "^5.4.0",
"@modelcontextprotocol/sdk": "^1.29.0",
"@project-e/db": "^0.1.0",
"@project-e/shared": "*",
"@radix-ui/react-accordion": "^1.2.16",
"@radix-ui/react-alert-dialog": "^1.1.19",
@@ -50,13 +51,16 @@
"@tiptap/starter-kit": "^3.27.4",
"@types/react-big-calendar": "^1.16.3",
"@types/react-grid-layout": "^1.3.6",
"bcryptjs": "^3.0.3",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"date-fns": "^4.4.0",
"drizzle-orm": "^0.45.2",
"lucide-react": "^1.24.0",
"next": "^15.3.0",
"pocketbase": "^0.27.0",
"next-auth": "^4.24.15",
"postgres": "^3.4.9",
"react": "^19.1.0",
"react-big-calendar": "^1.20.0",
"react-calendar-heatmap": "^1.10.0",
@@ -73,6 +77,7 @@
},
"devDependencies": {
"@tailwindcss/postcss": "^4.3.2",
"@types/bcryptjs": "^2.4.6",
"@types/node": "^22.19.0",
"@types/react": "^19.1.0",
"@types/react-dom": "^19.1.0",