{"size": 367, "ext": "js", "max_stars_repo_path": "projects/hamzahfayad/horizon-project/server/model/list.model.js", "max_stars_repo_name": "mehedieh/CodeWithFriends-Spring2020", "max_stars_repo_stars_event_min_datetime": "2020-04-21T23:36:56.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-27T17:12:24.000Z", "max_issues_repo_path": "projects/hamzahfayad/horizon-project/server/model/list.model.js", "max_issues_repo_name": "mehedieh/CodeWithFriends-Spring2020", "max_issues_repo_issues_event_min_datetime": "2020-05-01T21:29:18.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-12T00:47:56.000Z", "max_forks_repo_path": "projects/hamzahfayad/horizon-project/server/model/list.model.js", "max_forks_repo_name": "mehedieh/CodeWithFriends-Spring2020", "max_forks_repo_forks_event_min_datetime": "2020-04-24T18:02:25.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-04T05:12:36.000Z"}
{"max_stars_count": 37, "max_issues_count": 56, "max_forks_count": 171, "avg_line_length": 15.2916666667, "max_line_length": 46, "alphanum_fraction": 0.5286103542}
mongoose = require("mongoose");
const Schema = mongoose.Schema;

const List = new Schema(
  {
    title: {
      type: String,
      required: true,
    },
    body: {
      type: String,
      required: true,
    },
    date: {
      type: Date,
      default: Date.now,
    },
  },
  {
    collection: "lists",
  });

module.exports = mongoose.model("List", List);
