source: backend/models/subCategoryModel.js@ a2e5735

Last change on this file since a2e5735 was a2e5735, checked in by Nace Gjorgjievski <nace.gorgievski123@…>, 23 months ago

Final Version

  • Property mode set to 100644
File size: 360 bytes
Line 
1import mongoose from "mongoose";
2
3const subCategorySchema = new mongoose.Schema(
4 {
5 subCategoryName: { type: String, required: true, unique: true },
6 subCategorySlug: { type: String, required: true, unique: true },
7 },
8 {
9 timestamps: true,
10 }
11);
12
13const SubCategory = mongoose.model("SubCategory", subCategorySchema);
14export default SubCategory;
Note: See TracBrowser for help on using the repository browser.