You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asynccreateUser(createUser: CreateUserDto){returnawaitthis.prisma.user.create({data: {
...createUser,id: uuidv4(),role: Role.USER,// <-- remove/change this to let prisma assign a role?},});}
The text was updated successfully, but these errors were encountered:
chrispinkney
changed the title
Set User's role to USER by default in prisma schema and remove hardcoded assignment
Allow prisma to assign a default User's role to USER by via schema (and remove hardcoded assignment)
Mar 6, 2024
manekenpix
changed the title
Allow prisma to assign a default User's role to USER by via schema (and remove hardcoded assignment)
Add default USER role when creating a new user
Mar 12, 2024
manekenpix
changed the title
Add default USER role when creating a new user
Add default USER's role when creating a new user
Mar 12, 2024
i.e.,
The text was updated successfully, but these errors were encountered: