InPactAI icon indicating copy to clipboard operation
InPactAI copied to clipboard

docs: add Supabase schema and seed instructions

Open shrav784 opened this issue 8 months ago • 1 comments

Closes #285

📝 Description

Added SQL schema and seed data instructions to the README to prevent "relation does not exist" errors during initial setup.

This ensures that required tables are created before running the existing SQL script, improving onboarding for new contributors.

🔧 Changes Made

  • Added SQL table creation query for users table
  • Added seed data with conflict handling
  • Updated Data Population section in README for clarity

📷 Screenshots or Visual Changes (if applicable)

N/A

🤝 Collaboration

Collaborated with: N/A

✅ Checklist

  • [x] I have read the contributing guidelines.
  • [ ] I have added tests that prove my fix is effective or that my feature works.
  • [x] I have added necessary documentation (if applicable).
  • [ ] Any dependent changes have been merged and published in downstream modules.

Summary by CodeRabbit

  • Documentation
    • Expanded database setup instructions: added an explicit inline SQL step to create required database objects and seed initial data, replaced a Markdown dashboard link with a plain URL, renumbered the setup steps for clarity, and simplified the final step for applying the provided SQL script.

shrav784 avatar Mar 26 '26 18:03 shrav784

[!WARNING]

Rate limit exceeded

@shrav784 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 14 minutes and 57 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 14 minutes and 57 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 1af2816c-a9fc-404a-8baa-0e1411dca3f4

📥 Commits

Reviewing files that changed from the base of the PR and between db913a64d8af46bf662362a9c7a26f05b89c2cb1 and 8dd522748c7d60fa5e9cea3f9ea15f72949fb11f.

📒 Files selected for processing (1)
  • README.md

Walkthrough

README "Data Population" updated: Supabase link changed to a plain URL; added inline SQL to enable pgcrypto, create public.users with id default gen_random_uuid(), username/email UNIQUE, timestamps, and seed INSERT statements using ON CONFLICT; step numbering adjusted and SQL-file step moved.

Changes

Cohort / File(s) Summary
Documentation Updates
README.md
Replaced Supabase Markdown link with a plain URL; added inline SQL to enable pgcrypto, create public.users (UUID id defaulting to gen_random_uuid(), username/email UNIQUE, additional columns and defaults), included seed INSERT statements with ON CONFLICT, renumbered data population steps and moved the SQL-file instruction.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • AOSSIE-Org/InPactAI#81 — Overlapping README/data population edits and Supabase setup instructions.
  • #285 — Issue requesting insertion of table creation and seed SQL into docs (users table schema + seed examples).
  • AOSSIE-Org/InPactAI#179 — Related README changes adding inline SQL to enable pgcrypto and create users schema.

Suggested labels

Documentation

Poem

🐇 I hopped into README, nibbling lines so neat,
I planted UUID seeds and made conflicts meet,
Tables sprout in public schema, tidy and true—
A little hop, and setup’s ready for you. ✨

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'docs: add Supabase schema and seed instructions' directly summarizes the main change—adding schema and seed data instructions to documentation.
Linked Issues check ✅ Passed The PR addresses issue #285 by adding CREATE TABLE statement for public.users with required schema fields and seed data with ON CONFLICT handling as specified.
Out of Scope Changes check ✅ Passed The README.md changes are focused solely on documenting the Supabase schema and data population instructions, directly aligned with issue #285 objectives.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • [ ] Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar Mar 26 '26 18:03 coderabbitai[bot]