Files
ML4E/src/models/Projects.js
Ashwani Senapati 4e9f49fbf8 fix:projects
2025-11-29 13:59:02 +05:30

17 lines
432 B
JavaScript

import mongoose from "mongoose";
const ProjectSchema = new mongoose.Schema(
{
name: { type: String, required: true },
techStack: { type: String, required: true },
description: { type: String },
githubLink: { type: String },
deployedLink: { type: String },
imageUrl: { type: String },
},
{ timestamps: true }
);
export default mongoose.models.projects ||
mongoose.model("projects", ProjectSchema);