Download models/Project.js from denismorris/projectpurity-proctor: direct link, hf CLI and curl.
- Browser
- Download file 739 Bytes
-
https://huggingface.co/spaces/denismorris/projectpurity-proctor/resolve/main/models/Project.js
- Command line
-
hf download hf://spaces/denismorris/projectpurity-proctor/models/Project.js
-
curl -L -o Project.js https://huggingface.co/spaces/denismorris/projectpurity-proctor/resolve/main/models/Project.js
739 Bytes
| const mongoose = require('mongoose'); | |
| const ProjectSchema = new mongoose.Schema({ | |
| title: { | |
| type: String, | |
| required: true | |
| }, | |
| abstract: { | |
| type: String, | |
| required: true | |
| }, | |
| documentUrl: { | |
| type: String, | |
| required: true | |
| }, | |
| tags: { | |
| type: [String], | |
| default: [] | |
| }, | |
| submittedBy: { | |
| type: mongoose.Schema.Types.ObjectId, | |
| ref: 'User', | |
| required: true | |
| }, | |
| status: { | |
| type: String, | |
| enum: ['pending', 'approved', 'rejected'], | |
| default: 'pending' | |
| }, | |
| feedback: { | |
| type: String, | |
| default: '' | |
| }, | |
| similarityScore: { | |
| type: Number, | |
| default: 0 | |
| }, | |
| createdAt: { | |
| type: Date, | |
| default: Date.now | |
| } | |
| }); | |
| module.exports = mongoose.model('Project', ProjectSchema); |