update: add shafafiat pages
This commit is contained in:
@@ -4,6 +4,7 @@ const mongoosePaginate = require("mongoose-paginate-v2");
|
||||
const LoggerSchema = mongoose.Schema({
|
||||
LastLogin: String,
|
||||
user: { type: mongoose.Schema.Types.ObjectId, ref: "User" },
|
||||
ip: { type: String, default: null },
|
||||
});
|
||||
|
||||
LoggerSchema.plugin(mongoosePaginate);
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
const { model } = require("mongoose");
|
||||
const { Schema } = require("mongoose");
|
||||
|
||||
const ShafafSchema = Schema(
|
||||
{
|
||||
title: { type: String },
|
||||
icon: { type: String },
|
||||
link: { type: String },
|
||||
},
|
||||
{
|
||||
timestamps: true,
|
||||
}
|
||||
);
|
||||
|
||||
module.exports = model("Shafaf", ShafafSchema);
|
||||
Reference in New Issue
Block a user