Data & Persistence
Data & Persistence covers database setup, migrations, multiple datasource wiring, KV, and adapter packages. Start here when the question is where state lives, how schema changes ship, or how the workspace resolves a second database.
Overview & Concepts
Database and KV
The persistence layer behind services, queues, and workflow state.
Quickstart Data contractsFollow the Storefront data step before service and saga work expand it.
How-To Database and migrationInitialize and migrate the primary datasource.
How-To Second databaseAdd and address another datasource from the workspace.
API Reference databaseGenerated database package symbols.
API Reference kv and Prisma adapterGenerated KV and adapter package symbols.