Skip to content

docs: Document the database schema relations for Message - #208

Open
Daksh7785 wants to merge 3 commits into
Dharm3112:mainfrom
Daksh7785:docs/document-the-database-schema-relations-for-me
Open

docs: Document the database schema relations for Message#208
Daksh7785 wants to merge 3 commits into
Dharm3112:mainfrom
Daksh7785:docs/document-the-database-schema-relations-for-me

Conversation

@Daksh7785

Copy link
Copy Markdown

What does this PR do?

This Pull Request introduces a new documentation file docs/database-schema-message.md that fully documents the relationships, columns, indexes, and structure of the messages table according to our Drizzle ORM schema.

Why is this necessary?

As per Issue #15, having clear documentation on core database tables drastically reduces the onboarding time for new contributors. Specifically, it highlights the roomId and userId foreign keys, and details the composite index (roomHistoryIdx) used for optimizing room history queries.

How was this verified?

  • Read the existing packages/shared/src/schema.ts file to ensure 100% accuracy in the documentation.
  • Formatted cleanly using GitHub markdown.

Thank you for reviewing my PR! Let me know if any changes are required, I am happy to accept constructive feedback as per our community Code of Conduct.

@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Dharm3112's projects Team on Vercel.

A member of the Team first needs to authorize it.

@netlify

netlify Bot commented Jul 19, 2026

Copy link
Copy Markdown

👷 Deploy request for intellicircle pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit b128429

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