Added models

This commit is contained in:
Damien Broqua 2019-12-24 11:30:19 +01:00
parent aa0619b124
commit b9469d89b5
3 changed files with 70 additions and 0 deletions

15
models/Histories.js Normal file
View file

@ -0,0 +1,15 @@
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
}