AI Persistence/build Prisma Adapter

Use when an app already runs Prisma and needs TanStack AI chat persistence — writes a chat-persistence.ts into the app against its existing PrismaClient and schema.prisma. Covers the four models, BigInt timestamps, JSON-as-string columns, upsert-with-empty-update idempotency, and model renaming.

TanStack cd506f2 19.3 KB Updated

File contents

tanstack/ai/tree/main/packages/ai-persistence/skills/ai-persistence/build-prisma-adapter commit cd506f2cec

Frequently asked questions

npx skillmds@latest add tanstack/ai-persistence-build-prisma-adapter