irc-radio-bot/models/Histories.js
2019-12-24 11:30:19 +01:00

15 lines
277 B
JavaScript

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
}