Skip to main content

Overview

MySQL 8 managed via Drizzle ORM. Schema is defined in shared/schema.ts — this is the single source of truth for all tables and types.

Local database (Docker)

Local credentials:
  • Host: localhost:3306
  • Database: sahyogi
  • User: dbuser
  • Password: sin90is1

Production database

Hosted on a managed MySQL instance (PlanetScale or equivalent — confirm with team lead for exact host). Connect with DATABASE_SSL=true.
Ask the team lead for prod DB credentials. Never commit credentials to git.

Migration commands

Drizzle config: drizzle.config.ts — outputs migrations to ./db/migrations/, reads schema from ./shared/schema.ts.

Key tables