OnboardingDataCollection.mjs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import mongoose from '../infrastructure/Mongoose.mjs'
  2. const { Schema } = mongoose
  3. export const OnboardingDataCollectionSchema = new Schema(
  4. {
  5. firstName: { type: String, default: null },
  6. lastName: { type: String, default: null },
  7. primaryOccupation: { type: String, default: null },
  8. usedLatex: { type: String, default: null },
  9. companyDivisionDepartment: { type: String, default: null },
  10. companyJobTitle: { type: String, default: null },
  11. governmentJobTitle: { type: String, default: null },
  12. institutionName: { type: String, default: null },
  13. otherJobTitle: { type: String, default: null },
  14. nonprofitDivisionDepartment: { type: String, default: null },
  15. nonprofitJobTitle: { type: String, default: null },
  16. role: { type: String, default: null },
  17. subjectArea: { type: String, default: null },
  18. updatedAt: { type: Date, default: Date.now },
  19. },
  20. {
  21. collection: 'onboardingDataCollection',
  22. minimize: false,
  23. }
  24. )
  25. export const OnboardingDataCollection = mongoose.model(
  26. 'OnboardingDataCollection',
  27. OnboardingDataCollectionSchema
  28. )
  29. export default {
  30. OnboardingDataCollection,
  31. OnboardingDataCollectionSchema,
  32. }