Skip to content

Contracts docs: Database schema reference #441

Closed

Description

@codebestia

Write apps/backend/docs/contracts-database-schema.md documenting every table in db/schema.ts — users, wallets, conversations, conversationMembers, files, messages, messageEnvelopes, devices, devicePrekeys, tokenTransfers, treasuryProposals, proposalVotes, pushSubscriptions — with every column, type, default, index, and foreign-key relation.

Acceptance criteria:

  • Every table has every column documented (name, type, nullability, default, constraint)
  • Every index (including partial/unique) and every check constraint is documented with what it enforces and why
  • Relations between tables (FKs, cascade behavior) are documented, ideally with a mermaid ER diagram
  • Generated directly from the current schema file, then spot-checked against a real pnpm db:generate output

Activity

  1. SHEROSE0 commented on Jul 29, 2026

    @SHEROSE0

    @SHEROSE0 has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    Hi dear maintainer, I'm ready to work on this has I've read through the description please kindly assign it to me and I'll deliver it promptly. Thank you

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @SHEROSE0 to this issue.

  2. Fading-Dev commented on Jul 29, 2026

    @Fading-Dev

    @Godswillopeyemihub has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    Hi maintainer can you please assign this issue to me.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Godswillopeyemihub to this issue.

  3. drips-wave commented on Jul 29, 2026

    @drips-wave

    Congratulations, @Godswillopeyemihub! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on July 30, 2026.

    🧑‍💻 @Godswillopeyemihub: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  4. Benedict315 commented on Aug 27, 2026

    @Benedict315

    @Benedict315 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    hello please assign me to this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Benedict315 to this issue.

  5. Horpeyehmi commented on Aug 27, 2026

    @Horpeyehmi

    @Horpeyehmi has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hello, I'm interested in working on this issue. I have experience with similar tasks and can begin immediately. Please assign it to me

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Horpeyehmi to this issue.

  6. intelliDean commented on Aug 27, 2026

    @intelliDean

    @intelliDean has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    I'd like to work on this issue.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @intelliDean to this issue.

  7. eischideraa-unn commented on Sep 23, 2026

    @eischideraa-unn

    @eischideraa-unn has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hello Maintainer, I can work on this issue, kindly assign

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @eischideraa-unn to this issue.

  8. Dannyorji commented on Sep 28, 2026

    @Dannyorji
    Contributor

    @Dannyorji has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    I will like to work on this

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Dannyorji to this issue.

  9. drips-wave commented on Sep 28, 2026

    @drips-wave

    Congratulations, @Dannyorji! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.

    🧑‍💻 @Dannyorji: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  10. github-actions commented on Oct 2, 2026

    @github-actions

    Closed by #615, merged into dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackenddocumentationImprovements or additions to documentation

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions