14 lines
357 B
JavaScript
14 lines
357 B
JavaScript
const mongoose = require('mongoose')
|
|
const Schema = mongoose.Schema
|
|
|
|
const Top5ListSchema = new Schema(
|
|
{
|
|
name: { type: String, required: true },
|
|
items: { type: [String], required: true },
|
|
ownerEmail: { type: String, require: true }
|
|
},
|
|
{ timestamps: true },
|
|
)
|
|
|
|
module.exports = mongoose.model('Top5List', Top5ListSchema)
|