Skip to content

feat(user): add email field to user creation#74

Merged
NoNamer777 merged 1 commit intomainfrom
t3code/add-user-email
Mar 27, 2026
Merged

feat(user): add email field to user creation#74
NoNamer777 merged 1 commit intomainfrom
t3code/add-user-email

Conversation

@NoNamer777
Copy link
Copy Markdown
Member

Summary

  • Adds a required, unique email field to the User model (Prisma schema, domain interface, DTOs, and repository)
  • POST /users now requires an email in the request body; duplicate emails are rejected with 409 Conflict
  • PUT /users/:userId silently ignores any email in the body — email changes are intentionally deferred to a future verification workflow

- persist and validate user email across DTOs, service, and repository
- enforce email uniqueness on create and update test fixtures/mocks
@NoNamer777 NoNamer777 merged commit f88b7d6 into main Mar 27, 2026
5 checks passed
@NoNamer777 NoNamer777 deleted the t3code/add-user-email branch March 27, 2026 21:34
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.

1 participant