Added models
This commit is contained in:
parent
aa0619b124
commit
b9469d89b5
3 changed files with 70 additions and 0 deletions
15
models/Histories.js
Normal file
15
models/Histories.js
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue