feat(db): mesh data model — meshes, members, invites, audit log

- pgSchema "mesh" with 4 tables isolating the peer mesh domain
- Enums: visibility, transport, tier, role
- audit_log is metadata-only (E2E encryption enforced at broker/client)
- Cascade on mesh delete, soft-delete via archivedAt/revokedAt

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-04-04 21:19:32 +01:00
commit d3163a5bff
1384 changed files with 314925 additions and 0 deletions

31
pnpm-workspace.yaml Normal file
View File

@@ -0,0 +1,31 @@
packages:
- apps/*
- packages/**
- tooling/*
catalog:
'@tanstack/react-query': 5.90.6
'@tanstack/react-query-devtools': 5.90.2
'@tanstack/react-table': 8.21.3
'@vitest/coverage-v8': 4.0.14
'@ai-sdk/react': 2.0.94
ai: 5.0.94
envin: 1.1.10
eslint: 9.39.0
prettier: 3.6.2
react-hook-form: 7.66.0
react-native: 0.81.5
typescript: 5.9.3
vitest: 4.0.14
zod: 4.1.13
catalogs:
node22:
'@types/node': 22.16.0
react19:
'@types/react': 19.1.14
'@types/react-dom': 19.1.9
react: 19.1.0
react-dom: 19.1.0
onlyBuiltDependencies: duckdb