Skip to content

feat: add organization entity schema#192

Open
xx7412421-cloud wants to merge 6 commits into
MD-Creative-Production:mainfrom
xx7412421-cloud:main
Open

feat: add organization entity schema#192
xx7412421-cloud wants to merge 6 commits into
MD-Creative-Production:mainfrom
xx7412421-cloud:main

Conversation

@xx7412421-cloud

Copy link
Copy Markdown

Closes #112.

Summary

  • add an Organization model with owner tracking and a unique slug
  • add OrganizationMember membership support with per-organization uniqueness
  • add the generated migration for the organizations and organization_members tables, indexes, and foreign keys

Validation

  • npm ci
  • npm exec -- prisma validate
  • npm run prisma:generate
  • npm exec -- prisma format
  • npm run build:backend
  • git diff --check

Add organization ownership and membership Prisma relations for issue MD-Creative-Production#112.
Create organizations and organization_members tables for issue MD-Creative-Production#112.
@mijinummi

Copy link
Copy Markdown
Collaborator

Hi @xx7412421-cloud , thanks for your contribution. Kindly fix the database migration check ci that is failing. Wonderful contribution so far.

@xx7412421-cloud

Copy link
Copy Markdown
Author

Thanks for the review. I pushed a follow-up to address the migration check failure:

  • added a Prisma 7 prisma.config.ts so migrate commands can read DATABASE_URL
  • updated the database migration workflow to deploy migrations before checking status, then generate the Prisma client

Local validation passed with:

  • npx prisma validate
  • npx prisma generate

xx7412421-cloud and others added 2 commits June 23, 2026 08:34
Provide a local test database URL fallback so Prisma 7 validate and generate can run before CI injects DATABASE_URL.
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.

Create Organization Entity

2 participants