diff --git a/src/models/categories.js b/src/models/category.js similarity index 72% rename from src/models/categories.js rename to src/models/category.js index a0295a7..7450a0a 100644 --- a/src/models/categories.js +++ b/src/models/category.js @@ -1,4 +1,4 @@ -const mongoose = require('mongoose'); +import mongoose from 'mongoose'; // Define a schema const { Schema } = mongoose; @@ -8,10 +8,6 @@ const CategorySchema = new Schema({ type: String, trim: true, }, - name: { - type: String, - trim: true, - }, value: { type: String, },