MotirBuilding in public
MOTIR · moooon
onMotir
You’re viewing a public project. Anyone can view it — no account needed. Sign in to submit, upvote, or comment on requests.View-only — you can’t edit work items
MOTIR-356

6.4.7 Seed — enroll the moooon team in the `motir` project (close the project-gating loop)

Done
Description

Estimate: 12m · Depends on: 6.4.2, 6.4.4

Now that ProjectMembership exists, update pnpm db:seed to enroll the team in the motir project — the project-gating half of the original "add the team to the workspace AND the project" ask (the workspace half already shipped). Add each seed user as a ProjectMembership (zhuyue@motir.co = project admin, the rest = member) and set the motir project’s accessLevel (keep open so the demo tenant is browsable, OR private to showcase gating — pick one and document it; default open for a friendly demo). Idempotent with the existing clear/reseed.

Acceptance criteria

  • pnpm db:seed creates a ProjectMembership for every seed user on the motir project (zhuyue = admin, others = member) and sets the project access level explicitly; re-running stays idempotent.
  • A note in seed.ts (and the MOTIR.md Plan-seed section) records the chosen access level + the per-user project roles.

Context refs

  • scripts/plan-seed/seed.ts — the team/workspace seeding to extend (the per-item reporter/assignee/priority work already landed); Story 6.4.2/6.4.4 (the model + service)