Edit surveys

This commit is contained in:
Swift
2024-02-24 17:33:11 +03:30
parent a4a151ae6b
commit cd22b6eefc
5 changed files with 50 additions and 11 deletions
+8
View File
@@ -10,6 +10,14 @@ const SurveySchema = mongoose.Schema({
coast: { type: Number, enum: [1, 2, 3, 4, 5] },
description: String,
code: String,
fullName: String,
national: String,
phoneNumber: String,
email: String,
type: {
type: Number,
default: 0
},
user: { type: mongoose.ObjectId, ref: 'User' },
})