irc-radio-bot/models/Histories.js

16 lines
277 B
JavaScript
Raw Normal View History

2019-12-24 11:30:19 +01:00
module.exports = mongoose => {
const schema = new mongoose.Schema({
radio: String,
artist: String,
title: String,
createdAt: {
type: Date,
default: Date.now
}
})
const Histories = mongoose.model('Histories', schema)
return Histories
}