@@ -82,7 +82,7 @@ export const PlayerSchema = new Schema({
8282export const StaffSchema = new Schema ( {
8383 email : { type : String , required : true , unique : true } ,
8484 username : { type : String , required : true , unique : true } ,
85- role : { type : String , required : true , enum : [ 'Super Admin' , 'Admin' , 'Moderator' , 'Helper' ] } ,
85+ role : { type : String , required : true } , // Removed enum to allow custom roles - validation handled in application logic
8686 assignedMinecraftUuid : { type : String , sparse : true , index : true } ,
8787 assignedMinecraftUsername : { type : String , sparse : true } ,
8888
@@ -132,7 +132,7 @@ export const StaffSchema = new Schema({
132132
133133export const InvitationSchema = new Schema ( {
134134 email : { type : String , required : true , unique : true } ,
135- role : { type : String , required : true , enum : [ 'Admin' , 'Moderator' , 'Helper' ] } ,
135+ role : { type : String , required : true } , // Removed enum to allow custom roles - validation handled in application logic
136136 token : { type : String , required : true , unique : true } ,
137137 expiresAt : { type : Date , required : true } ,
138138 status : { type : String , enum : [ 'pending' , 'accepted' ] , default : 'pending' } ,
0 commit comments