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 Updated 28.6k repo stars
TanStack AI

File contents

tanstack/ai commit cd506f2cec

Frequently asked questions

npx get-skill add tanstack/ai-persistence-build-prisma-adapter