Download models/GenerationLog.js from ismizo/CVBora: direct link, hf CLI and curl.
- Browser
- Download file 609 Bytes
-
https://huggingface.co/spaces/ismizo/CVBora/resolve/main/models/GenerationLog.js
- Command line
-
hf download hf://spaces/ismizo/CVBora/models/GenerationLog.js
-
curl -L -o GenerationLog.js https://huggingface.co/spaces/ismizo/CVBora/resolve/main/models/GenerationLog.js
609 Bytes
| const mongoose = require('mongoose'); | |
| const GenerationLogSchema = new mongoose.Schema({ | |
| userId: { type: mongoose.Schema.Types.ObjectId, ref: 'User', required: true }, | |
| email: { type: String, default: '' }, // denormalized for fast display | |
| type: { type: String, enum: ['free', 'paid'], required: true }, | |
| jobTitle: { type: String, default: '' }, // best-effort extracted from instructions | |
| createdAt: { type: Date, default: Date.now }, | |
| }); | |
| GenerationLogSchema.index({ createdAt: -1 }); | |
| module.exports = mongoose.model('GenerationLog', GenerationLogSchema); | |