SubmissionSystem - IEEE-Team-3/map GitHub Wiki

Overview

The submission system allows users to submit completed tasks for review and approval. Tasks can be submitted in various formats (e.g., files, links, descriptions).

Workflow

  1. User completes the task and submits it via the task page.
  2. The submission is marked with a "pending" status until reviewed.
  3. Reviewers approve or reject the submission.
  4. If approved, points are awarded and the task status is updated to "completed."
  5. If rejected, the task is returned to the assignee for rework.

Types of Submissions

  • File upload (PDF, doc, etc.)
  • Text input
  • Link submission

Example Schema

const SubmissionSchema = new Schema({
  taskId: { type: Schema.Types.ObjectId, ref: 'Task' },
  submittedBy: { type: Schema.Types.ObjectId, ref: 'User' },
  status: { type: String, enum: ['pending', 'approved', 'rejected'], default: 'pending' },
  content: String, // File URL or text
  submissionDate: Date
});
⚠️ **GitHub.com Fallback** ⚠️