16 lines
285 B
JavaScript
16 lines
285 B
JavaScript
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);
|