GIF89a php
Current File : /home/viralhoga/glambooth_viralhoga_com/src/models/template.model.js
import mongoose from "mongoose";

const templateSchema = new mongoose.Schema({
    userId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'User'
    },
    template: {
        type: String,
        required: true
    },
    uploadedBy: {
        type: String,
        enum: ['vendor', 'admin'],
        required: true
    }
}, { timestamps: true });



export const Template = mongoose.model('templates', templateSchema);