hayat / Database /models /category.js
Mohamed Abu Basith
addded all files
97f53b4
raw
history blame contribute delete
294 Bytes
const { Schema, model } = require("mongoose");
const categorySchema = Schema({
id: Schema.Types.ObjectId,
name: { type: String, required: true },
description: { type: String },
image: { type: String },
link: { type: String },
});
module.exports = model("Category", categorySchema);