user.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. const Sequelize = require('sequelize')
  2. const { defineModel } = require('./base')
  3. const User = defineModel('user', {
  4. sallary: {
  5. type: Sequelize.STRING(50),
  6. comment: '期望薪资'
  7. },
  8. name: {
  9. type: Sequelize.STRING(50),
  10. comment: '姓名'
  11. },
  12. department: {
  13. type: Sequelize.STRING(50),
  14. comment: '应聘岗位'
  15. },
  16. identity: {
  17. type: Sequelize.STRING(50),
  18. comment: '身份证号'
  19. },
  20. idPhoto: {
  21. type: Sequelize.STRING(255),
  22. comment: '证件照'
  23. },
  24. lifePhoto: {
  25. type: Sequelize.STRING(255),
  26. comment: '生活照',
  27. allowNull: true
  28. },
  29. personalInfo: {
  30. type: Sequelize.STRING(1200),
  31. comment: '基本信息'
  32. },
  33. email: {
  34. type: Sequelize.STRING(50),
  35. comment: '个人邮箱'
  36. },
  37. phone: {
  38. type: Sequelize.STRING(50),
  39. comment: '手机号码'
  40. },
  41. urgentPhone: {
  42. type: Sequelize.STRING(50),
  43. comment: '其他联系人号码/关系',
  44. allowNull: true
  45. },
  46. plan: {
  47. type: Sequelize.STRING(255),
  48. comment: '三年内职业规划'
  49. },
  50. eduExperience: {
  51. type: Sequelize.STRING(1200),
  52. comment: '教育经历'
  53. },
  54. workExperience: {
  55. type: Sequelize.STRING(1200),
  56. comment: '工作经历',
  57. allowNull: true
  58. },
  59. description: {
  60. type: Sequelize.STRING(255),
  61. comment: '工作业绩与自我评价'
  62. },
  63. resume: {
  64. type: Sequelize.STRING(255),
  65. comment: '上传简历',
  66. allowNull: true
  67. }
  68. })
  69. User.sync()
  70. module.exports = User