perf: app type

This commit is contained in:
archer
2023-08-07 12:59:52 +08:00
parent e190ee92e8
commit 2f614ac40d
12 changed files with 66 additions and 19 deletions

View File

@@ -11,6 +11,11 @@ const AppSchema = new Schema({
type: String,
required: true
},
type: {
type: String,
default: 'advanced',
enum: ['basic', 'advanced']
},
avatar: {
type: String,
default: '/icon/logo.png'
@@ -51,6 +56,7 @@ const AppSchema = new Schema({
type: Array,
default: []
},
// 弃
chat: {
relatedKbs: {
type: [Schema.Types.ObjectId],