feat(oauth2/db): reworked oauth2 database footprint

- Removed `auth` table and merged its information inside the `user`
  table
- Changed around some field names in the database
- Changed Create*User functions to not be using overload but different
  functions
This commit is contained in:
Maieul BOYER 2025-11-13 16:00:05 +01:00 committed by Maix0
parent 34249bf68d
commit 5a905a1239
10 changed files with 90 additions and 142 deletions

View file

@ -46,7 +46,7 @@ const route: FastifyPluginAsync = async (fastify, _opts): Promise<void> => {
const payload = {
name: user.display_name,
name: user.name,
id: user.id,
// the !! converts a value from <something> to either `true` or `false`
// it uses the same convention from using <something> in a if, meaning that