Spaces:
Running
Running
File size: 294 Bytes
97f53b4 |
1 2 3 4 5 6 7 8 9 10 11 12 |
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); |