📜  创建模型 Obejctid mongoose - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:01.182000             🧑  作者: Mango

代码示例1
const schema = new Schema({ userCurrencyId:{type: mongoose.Schema.Types.ObjectId,
        index: true,
        required: true,
        auto: true});