Database & Users
Explore the database for your workspace and your published app
Every Riff app includes a built-in PostgreSQL database for persistent data storage, plus integrated user management via Stack Auth.
Click + More and select the Database tab in the workspace top bar.

Key features:
PostgreSQL database: Full-featured relational database
Separate environments: Independent databases for development and production
Migrations: Version-controlled database schema changes
SQL queries: Run queries directly from the interface
Schema exploration: Browse tables, columns, and relationships
User management: Built-in authentication and user tables
How to use:
Ask the agent to create database tables for your data needs
The agent creates migrations to define the schema
Query data using SQL or integrate via Python APIs
Migrations automatically apply to production on deployment
Tips:
Use migrations for all schema changes - they're version controlled
Development and production databases are separate - test first in dev
User authentication is pre-configured with Stack Auth
The file system is not persistent - always use the database for data storage
Last updated
Was this helpful?