Add Brand Section

This commit is contained in:
Swift
2024-02-08 12:40:53 +03:30
parent a271dc0c90
commit 35407ffc1d
7 changed files with 210 additions and 28 deletions
+17
View File
@@ -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);