Add Brand Section
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
const mongoose = require('mongoose');
|
||||
|
||||
const brandSchema = new mongoose.Schema({
|
||||
title: String,
|
||||
link: {
|
||||
type: String,
|
||||
unique: [true, "This link already taken"]
|
||||
},
|
||||
description: String,
|
||||
logo: String,
|
||||
},
|
||||
{
|
||||
timestamps: true,
|
||||
}
|
||||
);
|
||||
|
||||
module.exports = mongoose.model('Brand', brandSchema);
|
||||
Reference in New Issue
Block a user