Create team on superadmin create

This commit is contained in:
Alex Holliday committed 2024-08-26 10:23:05 -07:00
1 parent 4c2cc6fb2c
commit a6f5c96f93
3 files changed
+29 -7

No files matched your search

+5
View File
@@ -40,6 +40,11 @@ const UserSchema = mongoose.Schema(
default: "user",
enum: ["user", "admin", "superadmin"],
},
teamId: {
type: mongoose.Schema.Types.ObjectId,
ref: "Team",
immutable: true,
},
},
{
timestamps: true,