Something went wrong. Try again.
My #100DaysOfCode Challenge starting today! This repository is to dump most of the scrap/test project works done during the challenge.
Something went wrong. Try again.
12345678910111213141516171819const mongoose = require('mongoose')
const subscriberSchema = new mongoose.Schema({ name: { type: String, required: true }, subscribedToChannel: { type: String, required: true }, subscribeDate: { type: String, required: true, default: Date.now }})
module.exports = mongoose.model('subscriber', subscriberSchema)