Panini-Devs / bismarck

Multipurpose discord bot written in rust!
GNU General Public License v3.0
5 stars 5 forks source link

[INFO] - Wish simulator SQL implementation #40

Open paninizer opened 6 months ago

paninizer commented 6 months ago

See SQLite Schema

User stored in DB must have:

  1. Discord UID
  2. Primogem amount (currency for wishing)
  3. Event wishes amount
  4. Standard wishes amount
  5. A list of Character objects that they have obtained
  6. A list of Weapon objects that they have obtained

Character object:

Weapon object:

Considering the lack of array support in SQLite, this would be difficult to implement. Change schema to fit PostgreSQL would be acceptable but doing this in SQLite is preferable as hosting a Postgres database is somewhat of a pain.

paninizer commented 6 months ago

Note that in rust, the ID of Weapon and Character can be an u8 to save memory (since genshin currently does not have >255 characters or weapons).