ADD: Required to role field in user

This commit is contained in:
2025-04-21 00:36:35 +03:30
parent c161dee76b
commit 11a86929e7
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -34,6 +34,7 @@ const userSchema = new mongoose.Schema(
role: {
type: ObjectID,
ref: 'Role',
required: true
},
isAdmin: {
type: Boolean,