api/resources/Content/TermsandConditonModel.js
2023-10-23 16:21:28 +05:30

22 lines
396 B
JavaScript

import mongoose from "mongoose";
const { Schema, model } = mongoose;
const termsAndContionSchema = new Schema(
{
termsAndContionContent: {
type: String,
},
addedBy: {
type: mongoose.Schema.ObjectId,
ref: "User",
required: true,
},
},
{ timestamps: true }
);
export const TermsAndCondition = model(
"TermsAndCondition",
termsAndContionSchema
);