feat: add type and color to response

This commit is contained in:
wancat committed 2023-08-09 21:14:57 +08:00
1 parent 5cad3ecc12
commit a151d2d667
6 files changed
+143 -17

No files matched your search

+11 -1
View File
@@ -1,5 +1,15 @@
import { model, Schema } from 'mongoose'
const responseSchema = new Schema({
type: {
type: String,
required: true,
},
content: [String],
speaker: String,
color: String,
})
const stageSchema = new Schema({
id: {
type: String,
@@ -20,7 +30,7 @@ const stageSchema = new Schema({
},
},
responses: {
type: [String],
type: [responseSchema],
required: true,
},
hints: {