| 123456789101112131415161718192021222324252627282930313233 |
- const mongoose = require('../infrastructure/Mongoose')
- const { Schema } = mongoose
- const OnboardingDataCollectionSchema = new Schema(
- {
- firstName: { type: String, default: null },
- lastName: { type: String, default: null },
- primaryOccupation: { type: String, default: null },
- usedLatex: { type: String, default: null },
- companyDivisionDepartment: { type: String, default: null },
- companyJobTitle: { type: String, default: null },
- governmentJobTitle: { type: String, default: null },
- institutionName: { type: String, default: null },
- otherJobTitle: { type: String, default: null },
- nonprofitDivisionDepartment: { type: String, default: null },
- nonprofitJobTitle: { type: String, default: null },
- role: { type: String, default: null },
- subjectArea: { type: String, default: null },
- updatedAt: { type: Date, default: Date.now },
- },
- {
- collection: 'onboardingDataCollection',
- minimize: false,
- }
- )
- module.exports = {
- OnboardingDataCollection: mongoose.model(
- 'OnboardingDataCollection',
- OnboardingDataCollectionSchema
- ),
- OnboardingDataCollectionSchema,
- }
|