ApplicationProgressLog.js 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * @Author: fuyu
  3. * @Date: 2021-03-22 19:10:00
  4. * @LastEditors: fuyu
  5. * @LastEditTime: 2021-03-23 11:15:15
  6. * @FilePath: /202103/code/test/tmp/ApplicationProgressLog.js
  7. */
  8. const Sequelize = require('sequelize');
  9. import sequelize from './db/sequelize';
  10. /**
  11. * 患者信息
  12. */
  13. // primaryKey: true
  14. // defaultValue: null
  15. const ApplicationProgressLog = sequelize.define('application_progress_log', {
  16. id: {type: Sequelize.STRING(50), allowNull: false, primaryKey: true}, // id,
  17. operator_id: {type: Sequelize.STRING(50), allowNull: true, defaultValue: null}, // operator_id, 操作人id
  18. operator_name: {type: Sequelize.STRING(255), allowNull: true, defaultValue: ''}, // operator_name, 操作人姓名
  19. current_step: {type: Sequelize.STRING(100), allowNull: false, defaultValue: ''}, // current_step, 当前操作步骤\r\n1、待支付\r\n2、已支付发起申请\r\n3、已接受\r\n4、已撤回\r\n5、已驳回\r\n6、已写\r\n7、已审核\r\n8、远程确认\r\n9、本地完成\r\n10、取消订单\r\n11、已退款
  20. remark: {type: Sequelize.STRING(2000), allowNull: true}, // remark,
  21. application_id: {type: Sequelize.STRING(50), allowNull: false, defaultValue: ''}, // application_id 申请单id
  22. }, {
  23. freezeTableName: true,
  24. charset: 'utf8',
  25. indexes:[
  26. {fields : ['application_id']}
  27. ],
  28. updatedAt: false
  29. });
  30. ApplicationProgressLog.sync({ force: false }).then(function() {});
  31. export default ApplicationProgressLog;