Skip to content

feat(backend): PostgreSQL connection with Drizzle ORM + base schema#1

Merged
codebestia merged 5 commits into
mainfrom
feat/orm-setup
May 12, 2026
Merged

feat(backend): PostgreSQL connection with Drizzle ORM + base schema#1
codebestia merged 5 commits into
mainfrom
feat/orm-setup

Conversation

@codebestia

Copy link
Copy Markdown
Owner

Summary

  • Installed drizzle-orm and postgres driver; added drizzle-kit as a dev dependency
  • Created src/db/index.ts — initializes a typed Drizzle client from DATABASE_URL
  • Defined base schema in src/db/schema.tsusers table (id, username, avatar_url, timestamps) and wallets table (id, user_id FK → users, address, is_primary, created_at)
  • Added drizzle.config.ts and db:generate, db:migrate, db:push, db:studio scripts to package.json
  • Generated initial SQL migration: drizzle/0000_init.sql
  • Upgraded /health endpoint to run SELECT 1 and report DB connectivity status

@codebestia codebestia merged commit 925dd09 into main May 12, 2026
1 check failed
codebestia pushed a commit that referenced this pull request May 30, 2026
…omponent

Implement auth route guards, optimistic Socket messaging, and new conversation flow
codebestia pushed a commit that referenced this pull request May 30, 2026
…h-endpoint

Add message search endpoint, Freighter wallet auth, and conversation sidebar
codebestia added a commit that referenced this pull request Jun 26, 2026
feat(backend): PostgreSQL connection with Drizzle ORM + base schema
codebestia pushed a commit that referenced this pull request Jun 26, 2026
…h-endpoint

Add message search endpoint, Freighter wallet auth, and conversation sidebar
codebestia pushed a commit that referenced this pull request Jun 26, 2026
…omponent

Implement auth route guards, optimistic Socket messaging, and new conversation flow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant