Skip to content

Auth & Orgs: Basic platform authentication & org model #9

@cuevaio

Description

@cuevaio

Description

Implement authentication and organization model using Prisma + Neon Postgres.

Data Models

  • Users
  • Organizations
  • Organization membership (users <-> orgs)
  • Projects (within organizations)
  • API Keys (linked to projects and orgs)

Tasks

  • Design and create Prisma schema for all models
  • Set up Neon Postgres connection
  • Integrate BetterAuth for authentication
  • Implement signup flow with default org creation (or prompt)
  • Create organization invitation/membership system
  • Link API keys to projects and organizations
  • Implement proper authorization checks

Acceptance Criteria

  • Users can sign up and are placed in an organization
  • Organizations can have multiple members
  • Projects belong to organizations
  • API keys are properly scoped to projects/orgs
  • All endpoints have proper authorization

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions