api/resources/SEO&Analytics/SEOModel.js
2024-03-05 15:12:11 +05:30

34 lines
1.0 KiB
JavaScript

import mongoose from "mongoose";
const { Schema, model } = mongoose;
const SeoRequestSchema = new mongoose.Schema(
{
GoogleTag: {
type: String,
maxLength: [25, "tag cannot exceed 25 characters"],
required: [true, "Please Enter google tag "],
},
FacebookPixel: {
type: String,
maxLength: [25, "tag cannot exceed 25 characters"],
required: [true, "Please Enter Facebook Pixel "],
},
GoogleAnalytics: {
type: String,
maxLength: [500, "google analytics cannot exceed 500 characters"],
required: [true, "Please Enter google analytics"],
},
MicrosoftClarity: {
type: String,
maxLength: [500, "Microsoft clarity cannot exceed 500 characters"],
required: [true, "Please Enter microsoft clarity"],
},
},
{ timestamps: true, versionKey: false }
);
export const SeoRequest = mongoose.model("SeoRequest", SeoRequestSchema);