After 10+ hours of debugging and searching through livewire issues, it turns out that the query string doesn't update if you have `history: true` in the `#[Url()]` attribute.
Use a 1-1 relation. Cache it indefinitely to reduce queries for every http request. This will make it much easier to add additional user settings for various site features without sacrificing clean code or performance.
These bots don't currently do anything. Exception: the casino bot accepts donations through a nerdbot command but doesn't currently do anything else with it. If any trivia/casino/bet features need to be brought back, it would be easy enough to view the old code through the git history, but there's probably a bunch that can be improved with its interface as well.
The index on the torrents table makes two 2-second queries negligible. The order by id desc makes one of the 2 second query negligible. The explicit select on the torrents table halves the time of the other 4 of the 5 queries.
Useful for forums dedicated to fixing bugs or adding suggestions. This way, topics can be closed when bugs are fixed or suggestions are implemented, and opening the forum only shows relevant bugs/suggestions by default. Topics with different states can be accessed by changing the filter back to `Any`.
This data is already stored in the requests and bounty tables. At this point, the name and comment fields are duplicates of each other and don't need to both be kept.
Laravel deletes all previous password resets when adding a new reset, however, this is a race condition and it's possible for duplicate emails to exist in the table.
Unsigned decimal/float/double is deprecated in MySQL, they require adding a constraint instead. I'm facing issues when using the Diesel ORM in Rust with UNIT3D's schema because diesel does not want to add support for deprecated types. I switched the double to decimal because decimal makes much more sense for monetary values. There exists previous bon_transactions records below 0 from when UNIT3D unintentionally allowed negative gifts/tips so I did not add a constraint to that column.
Because this type is nonstandard, I'm facing issues when using the Diesel ORM in Rust with UNIT3D's schema because it does not support this non-standard type. Also, there exist movies from before 1901 which this type doesn't support.