Data.js 190 B

1234567891011
  1. 'use strict'
  2. import mongoose, { Schema } from 'mongoose'
  3. export default mongoose.model('Data', new Schema({
  4. date: {
  5. type: Date,
  6. default: () => new Date()
  7. },
  8. data: Object
  9. }))