Initial commit
This commit is contained in:
15
server/models/Brand.js
Normal file
15
server/models/Brand.js
Normal 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);
|
||||
|
||||
Reference in New Issue
Block a user