Initial commit

This commit is contained in:
2026-09-16 17:36:46 +05:30
commit c9f429d123
117 changed files with 14145 additions and 0 deletions

15
server/models/Brand.js Normal file
View File

@@ -0,0 +1,15 @@
const mongoose = require('mongoose');
const brandSchema = new mongoose.Schema({
name: { type: String, required: true, trim: true, unique: true },
slug: { type: String, required: true, unique: true, lowercase: true },
logo: { type: String, default: '' },
description: { type: String, default: '' },
website: { type: String, default: '' },
metaTitle: { type: String, default: '' },
metaDescription: { type: String, default: '' },
isActive: { type: Boolean, default: true }
}, { timestamps: true });
module.exports = mongoose.model('Brand', brandSchema);