Skip to content

Instantly share code, notes, and snippets.

@cmwylie19
Created February 28, 2021 16:27
Show Gist options
  • Save cmwylie19/e0d3609ce294085bdf4ad1706857e254 to your computer and use it in GitHub Desktop.
Save cmwylie19/e0d3609ce294085bdf4ad1706857e254 to your computer and use it in GitHub Desktop.
List Schema
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