Init
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
const mongoose = require("mongoose");
|
||||
|
||||
const newsSchema = new mongoose.Schema({
|
||||
email: {
|
||||
type: String,
|
||||
unique: true
|
||||
}
|
||||
},
|
||||
{
|
||||
timestamps: true,
|
||||
versionKey: false
|
||||
}
|
||||
);
|
||||
|
||||
module.exports = mongoose.model("News", newsSchema);
|
||||
Reference in New Issue
Block a user