Skip to content

[1a] Project scaffolding + core schema #2

@andrmaz

Description

@andrmaz

What to build

Wire up the TypeScript monorepo (apps, packages, pnpm workspaces, Turborepo), configure Docker Compose for PostgreSQL + Redis, and define the foundational Prisma schema: Organization, User, Department, UserDepartment models with full multi-tenant shape. Establish CI skeleton (type-check, lint, test).

This slice has no external dependencies and unblocks every other phase.

Acceptance criteria

  • Monorepo structure boots cleanly (pnpm install, pnpm check-types, pnpm build).
  • docker-compose up starts PostgreSQL and Redis with no manual steps.
  • Prisma schema includes Organization, User, Department, UserDepartment models and passes prisma validate.
  • First migration is applied and baseline CI passes.

Blocked by

None — can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmvpCortex MVP scope

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions