Initial commit

This commit is contained in:
2026-09-16 17:36:46 +05:30
commit c9f429d123
117 changed files with 14145 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
const mongoose = require('mongoose');
const emailTemplateSchema = new mongoose.Schema({
name: { type: String, required: true, unique: true }, // Welcome, Order Confirmation, Order Shipped, Password Reset, Low Stock, Contact Form
subject: { type: String, required: true },
bodyHtml: { type: String, required: true },
placeholders: [{ type: String }] // e.g. ['{{customerName}}', '{{orderId}}', '{{orderTotal}}']
}, { timestamps: true });
module.exports = mongoose.model('EmailTemplate', emailTemplateSchema);