Skip to content

Data models for managing players, sessions, and in-game events in Numinia, a game by Numen Games.

License

Notifications You must be signed in to change notification settings

numengames/numinia-models

Repository files navigation

Numinia Models

MongoDB models for Numinia projects

Requirements

This project requires the following dependencies:

  • MongoDB: Version 7.x or higher
  • Node.js: Version 20.x or higher
  • Mongoose: Version 8.x or higher

Installing

For the latest stable version:

npm install -S @numengames/numinia-models

Publishing

  • Move the git pointer to the master branch.
  • Use the runners major/minor/patch according to semver
  • npm will push the image to the registry and create the tag

Collections

  • player: Stores all player information, including playerName, oncyberId, hyperfyId, and player statuses like isActive and isBlocked.
  • logs: Tracks events within the game, such as teleport, redirect, insert password, AI interactions, obtaining NFTs, and asset acquisitions.
  • conversation: Stores all kind of conversations.
  • user: Stores all our users with its kind of accounts.
  • conversation-chunk: Stores all the messages related to a specific conversation.
  • playerSessions: Records player session data, including session start and end times.

Dependencies

DevDependencies

Contributing

We welcome contributions! If you'd like to improve this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/awesome-feature).
  3. Make your changes and commit them (git commit -am 'Add an awesome feature').
  4. Push the branch (git push origin feature/awesome-feature).
  5. Open a pull request.