integralLog.js 497 B

1234567891011121314151617
  1. 'use strict';
  2. const Schema = require('mongoose').Schema;
  3. const SchemaDefine = {
  4. // 用户名(帐号)
  5. openid: { type: String, required: false },
  6. // 姓名
  7. name: { type: String, required: false },
  8. // 积分
  9. integral: { type: Number, required: false },
  10. // 创建时间
  11. createTime: { type: String, required: false },
  12. };
  13. const schema = new Schema(SchemaDefine);
  14. module.exports = app => {
  15. const { mongoose } = app;
  16. return mongoose.model('integralLog', schema, 'integralLog');
  17. };