Files
ostandari/server/models/shafafiat.js
T
2024-11-19 17:03:46 +03:30

27 lines
477 B
JavaScript

const { model } = require("mongoose");
const { Schema } = require("mongoose");
const ShafafSchema = Schema(
{
title: { type: String },
icon: { type: String },
content: { type: String },
attachment: { type: String },
},
{
timestamps: true,
}
);
const ShafafCategory = Schema(
{},
{
timestamps: true,
}
);
module.exports = {
ShafafModel: model("Shafaf", ShafafSchema),
ShafafCategoryModel: model("ShafafCategory", ShafafCategory),
};