Database Migrations
Database configuration in development and production migrations with brick db.
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
| Field | Type | Description |
|---|---|---|
id | text | Row identifier. PK Default: crypto.randomUUID() (application) |
email | text | Unique email address. Unique |