matchList.js 320 B

12345678910111213
  1. import mongoose from 'mongoose'
  2. const MatchListSchema = new mongoose.Schema({
  3. imported: Date,
  4. parsed: Date,
  5. file: String,
  6. fileSize: Number,
  7. matches: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Match' }]
  8. })
  9. const MatchList = mongoose.model('MatchList', MatchListSchema)
  10. export default MatchList