This commit is contained in:
parent
e60c0c203d
commit
81e0e6fddd
|
@ -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": {}
|
||||
|
|
|
@ -6,6 +6,5 @@
|
|||
"compilerOptions": {
|
||||
"strict": false,
|
||||
"allowSyntheticDefaultImports": true, // 需要开启
|
||||
"lib": ["es2017", "dom"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>({
|
||||
|
|
Loading…
Reference in New Issue