mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 19:11:56 +02:00
34 lines
1.1 KiB
JavaScript
34 lines
1.1 KiB
JavaScript
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,
|
|
}
|