FRE-588: Complete tRPC/Clerk integration with database schema updates

- Updated router.ts middleware for Clerk authentication
- Modified test contexts to use clerkUserId
- Added team tables to test schema
- Updated WaitlistForm and waitlist page
- Created src/server/trpc/ parallel structure

All 258 tests pass. Ready for Security Reviewer.
This commit is contained in:
2026-04-28 16:13:55 -04:00
parent 81d944b2ac
commit 0cdb2e96b1
15 changed files with 427 additions and 71 deletions

View File

@@ -12,7 +12,7 @@ describe('revisionsRouter', () => {
await resetTestDb();
const db = await getTestDb();
await resetInMemoryState(db);
ctx = { userId: 1, db };
ctx = { clerkUserId: 'user_test', db };
caller = appRouter.createCaller(ctx);
});