📜  嵌套的 json 模式猫鼬 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:44.003000             🧑  作者: Mango

代码示例1
var mongoose =require('mongoose');
var Schema = mongoose.Schema;

var standardmessage = new Schema({
  id: Number,
  name: String,
  type: String,
  message: {
    messageType: String,
    timestamp: Number,
    messagestatus: String
  }
});