📜  猫鼬日期类型 - Javascript 代码示例

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

代码示例1
const mongoose = require('mongoose');

const userSchema = new mongoose.Schema({
  name: String,
  // `lastActiveAt` is a date
  lastActiveAt: Date
});
const User = mongoose.model('User', userSchema);