This commit is contained in:
xukuan 2025-02-21 11:06:39 +08:00
parent e60c0c203d
commit 81e0e6fddd
3 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,7 @@
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "e6be0c3e-1f3c-4b1a-97f4-588a51656419",
"uuid": "3075bb3f-316d-4686-9798-40b3535b2f61",
"files": [],
"subMetas": {},
"userData": {}

View File

@ -6,6 +6,5 @@
"compilerOptions": {
"strict": false,
"allowSyntheticDefaultImports": true, //
"lib": ["es2017", "dom"]
}
}

View File

@ -21,7 +21,7 @@ const accountSchema = new mongoose.Schema<DBAccountInfo>({
});
const DBAccountModel = mongoose.model("DBAccount", accountSchema);
accountSchema.index({ account: 1 }, { unique: true });// 唯一索
accountSchema.index({ account: 1 }, { unique: true });// 唯一索
// 2. 创建一个与 document interface 相对应的 Schema
const schema = new mongoose.Schema<DBUserInfo>({