SubmissionSystem - IEEE-Team-3/map GitHub Wiki
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).
- User completes the task and submits it via the task page.
- The submission is marked with a "pending" status until reviewed.
- Reviewers approve or reject the submission.
- If approved, points are awarded and the task status is updated to "completed."
- If rejected, the task is returned to the assignee for rework.
- File upload (PDF, doc, etc.)
- Text input
- Link submission
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
});