perf: txt

This commit is contained in:
archer
2023-07-18 09:38:18 +08:00
parent f71ce25c46
commit d346d38677
6 changed files with 20 additions and 8 deletions

View File

@@ -102,4 +102,4 @@ try {
console.log(error);
}
export const App: Model<AppType> = models['app'] || model('app', AppSchema);
export const App: Model<AppType> = models['model'] || model('model', AppSchema);

View File

@@ -14,7 +14,7 @@ const BillSchema = new Schema({
},
appId: {
type: Schema.Types.ObjectId,
ref: 'app',
ref: 'model',
required: false
},
time: {

View File

@@ -10,7 +10,7 @@ const ChatSchema = new Schema({
},
appId: {
type: Schema.Types.ObjectId,
ref: 'app',
ref: 'model',
required: true
},
updateTime: {