brick.ts

Database Migrations

Database configuration in development and production migrations with brick db.

llms.txt

This guide has been moved to Database Management & Migrations.

Brick-TS uses the explicit syncSchema helper in development and tests, and brick db generate / brick db migrate for production migrations on SQLite and PostgreSQL. See Database Schema.

Please see the canonical guide: Database Management & Migrations.

Schema

The database guide uses this application-owned table. Apply migrations to the tables declared in your Drizzle schema.

Table Name: users

FieldTypeDescription
idtextRow identifier. PK Default: crypto.randomUUID() (application)
emailtextUnique email address. Unique

On this page

Edit this page on GitHub

Last updated