From 238462df894542c08dbd7fff705d03f0676de3d9 Mon Sep 17 00:00:00 2001 From: masterhc Date: Sat, 10 Feb 2024 22:12:06 +0000 Subject: [PATCH] Strikes model updated to hold more info --- models/strikes.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/models/strikes.js b/models/strikes.js index 4900635..9a6f83a 100644 --- a/models/strikes.js +++ b/models/strikes.js @@ -4,13 +4,17 @@ const Schema = mongoose.Schema; let strike = new Schema( { - strikerID: {type: String, required: false, max: 100}, + strikerID: {type: String, required: true, max: 100}, + strikerName:{type:String, required:true}, + strikerAvatar:{type:String, required:true}, strokedID: {type:String, required: true,}, - guildName:{type:String, required: true}, + strokedName:{type:String, required:true}, + strokedAvatar:{type:String, required:true}, guildID:{type:String, required: true}, reason:{type:String, required:true}, + validated:{type:Object, required:false}, date:{type:Date, required:true}, - expireAt:{type:Date, required:true} + expireAt:{type:Date, required:true}, } );