memdb.index.js 566 B

123456789101112131415161718192021222324252627
  1. 'use strict';
  2. module.exports = {
  3. player: {
  4. // Index setting, modify it on your need
  5. indexes: [
  6. {
  7. // Index keys
  8. keys: ['account'],
  9. //unique: true //ts--唯一约束去掉
  10. },
  11. {
  12. // Index keys
  13. keys: ['userId']
  14. }
  15. ]
  16. },
  17. agenter: {
  18. // Index setting, modify it on your need
  19. indexes: [
  20. {
  21. // Index keys
  22. keys: ['agentNo']
  23. }
  24. ]
  25. }
  26. };