This commit is contained in:
2023-12-28 15:35:58 +05:00
parent bd44b4549c
commit 72f68c3325
129 changed files with 2319 additions and 3477 deletions
+32
View File
@@ -0,0 +1,32 @@
import { Schema, model } from "mongoose";
const mailSchema = new Schema(
{
fullname: {
type: String,
required: true,
},
email: {
type: String,
required: true,
},
phone: {
type: String,
},
request: {
type: String,
},
referer: {
type: String,
},
},
{
timestamps: true,
toJSON: { virtuals: true },
toObject: { virtuals: true },
}
);
const Mail = model("Mail", mailSchema);
export default Mail;