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 | |
---|
1 | import mongoose from "mongoose";
|
---|
2 |
|
---|
3 | const 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 |
|
---|
13 | const SubCategory = mongoose.model("SubCategory", subCategorySchema);
|
---|
14 | export default SubCategory;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.