mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
feat: default response to dialogue and spoken by Ada
This commit is contained in:
1 parent
21ca083628
commit
2e1fe369a4
1 file changed
+3
-1
@@ -3,10 +3,12 @@ import { model, Schema } from 'mongoose'
|
|||||||
const responseSchema = new Schema({
|
const responseSchema = new Schema({
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
|
enum: ['narrative', 'dialogue'],
|
||||||
|
default: 'dialogue',
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
content: [String],
|
content: [String],
|
||||||
speaker: String,
|
speaker: { type: String, default: 'Ada' },
|
||||||
color: String,
|
color: String,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user