Created
February 28, 2021 16:27
-
-
Save cmwylie19/e0d3609ce294085bdf4ad1706857e254 to your computer and use it in GitHub Desktop.
List Schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongoose = require("mongoose"); | |
const Schema = mongoose.Schema; | |
const List = new Schema({ | |
title: String, | |
owner: String, | |
allow: { type: Array, default: [] }, | |
created: { type: Date, default: Date.now }, | |
}); | |
module.exports = mongoose.model("List", List); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment