summary refs log tree commit diff
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-05-19 15:46:52 -0400
committerPuyodead1 <puyodead@protonmail.com>2023-12-23 16:35:42 -0500
commita7ea2d3d1cd8dc3479f47066fb551c023de03bb3 (patch)
tree234542b7b52f3d7c9d02bdc5f577b01ba4901a79
parentrename pomeloEnabled to uniqueUsernames (diff)
downloadserver-a7ea2d3d1cd8dc3479f47066fb551c023de03bb3.tar.xz
add legacy_username user field
-rw-r--r--assets/openapi.json12
-rw-r--r--assets/schemas.json774
-rw-r--r--src/api/routes/users/#id/profile.ts1
-rw-r--r--src/util/entities/User.ts6
4 files changed, 792 insertions, 1 deletions
diff --git a/assets/openapi.json b/assets/openapi.json
index 131e370b..4c9006c2 100644
--- a/assets/openapi.json
+++ b/assets/openapi.json
@@ -1362,6 +1362,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -3496,6 +3499,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -7026,6 +7032,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -7146,6 +7155,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
diff --git a/assets/schemas.json b/assets/schemas.json
index 7f74d353..9a00e613 100644
--- a/assets/schemas.json
+++ b/assets/schemas.json
@@ -1493,6 +1493,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -3660,6 +3663,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -5730,6 +5736,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -7897,6 +7906,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -9967,6 +9979,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -12134,6 +12149,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -14199,6 +14217,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -16366,6 +16387,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -18467,6 +18491,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -20634,6 +20661,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -22704,6 +22734,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -24871,6 +24904,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -26932,6 +26968,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -29099,6 +29138,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -31163,6 +31205,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -33330,6 +33375,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -35403,6 +35451,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -37570,6 +37621,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -39631,6 +39685,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -41798,6 +41855,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -43859,6 +43919,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -46026,6 +46089,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -48106,6 +48172,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -50273,6 +50342,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -52337,6 +52409,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -54504,6 +54579,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -56628,6 +56706,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -58795,6 +58876,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -60878,6 +60962,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -63045,6 +63132,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -65269,6 +65359,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -67436,6 +67529,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -69518,6 +69614,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -71685,6 +71784,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -73777,6 +73879,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -75944,6 +76049,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -78018,6 +78126,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -80185,6 +80296,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -82265,6 +82379,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -84432,6 +84549,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -86502,6 +86622,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -88669,6 +88792,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -90727,6 +90853,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -92894,6 +93023,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -95070,6 +95202,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -97237,6 +97372,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -99410,6 +99548,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -101577,6 +101718,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -103638,6 +103782,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -105805,6 +105952,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -107874,6 +108024,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -110041,6 +110194,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -112103,6 +112259,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -114270,6 +114429,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -116332,6 +116494,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -118499,6 +118664,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -120596,6 +120764,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -122763,6 +122934,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -124825,6 +124999,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -126992,6 +127169,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -129053,6 +129233,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -131220,6 +131403,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -133296,6 +133482,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -135463,6 +135652,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -137528,6 +137720,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -139695,6 +139890,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -141834,6 +142032,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -144001,6 +144202,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -146062,6 +146266,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -148229,6 +148436,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -150290,6 +150500,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -152457,6 +152670,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -154515,6 +154731,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -156682,6 +156901,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -158746,6 +158968,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -160913,6 +161138,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -162987,6 +163215,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -165154,6 +165385,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -167212,6 +167446,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -169379,6 +169616,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -171486,6 +171726,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -173653,6 +173896,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -175746,6 +175992,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -177913,6 +178162,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -179971,6 +180223,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -182138,6 +182393,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -184221,6 +184479,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -186388,6 +186649,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -188560,6 +188824,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -190727,6 +190994,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -192784,6 +193054,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -194951,6 +195224,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -197047,6 +197323,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -199214,6 +199493,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -201298,6 +201580,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -203465,6 +203750,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -205601,6 +205889,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -207768,6 +208059,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -209826,6 +210120,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -211993,6 +212290,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -214059,6 +214359,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -216226,6 +216529,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -218282,6 +218588,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -220449,6 +220758,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -222511,6 +222823,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -224678,6 +224993,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -226740,6 +227058,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -228907,6 +229228,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -230969,6 +231293,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -233136,6 +233463,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -235230,6 +235560,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -237397,6 +237730,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -239463,6 +239799,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -241630,6 +241969,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -243686,6 +244028,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -245853,6 +246198,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -247915,6 +248263,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -250082,6 +250433,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -252155,6 +252509,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -254322,6 +254679,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -256409,6 +256769,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -258576,6 +258939,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -260634,6 +261000,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -262801,6 +263170,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -264862,6 +265234,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -267029,6 +267404,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -269122,6 +269500,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -271289,6 +271670,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -273347,6 +273731,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -275514,6 +275901,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -277651,6 +278041,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -279818,6 +280211,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -281883,6 +282279,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -284050,6 +284449,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -286108,6 +286510,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -288275,6 +288680,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -290333,6 +290741,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -292500,6 +292911,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -294565,6 +294979,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -296732,6 +297149,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -298794,6 +299214,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -300961,6 +301384,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -303019,6 +303445,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -305186,6 +305615,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -307326,6 +307758,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -309493,6 +309928,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -311562,6 +312000,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -313729,6 +314170,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -315799,6 +316243,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -317966,6 +318413,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -320086,6 +320536,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -322253,6 +322706,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -324332,6 +324788,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -326499,6 +326958,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -328584,6 +329046,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -330751,6 +331216,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -332830,6 +333298,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -334997,6 +335468,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -337055,6 +337529,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -339222,6 +339699,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -341308,6 +341788,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -343475,6 +343958,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -345573,6 +346059,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -347740,6 +348229,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -349792,6 +350284,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -351959,6 +352454,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -354021,6 +354519,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -356188,6 +356689,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -358246,6 +358750,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -360413,6 +360920,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -362478,6 +362988,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -364645,6 +365158,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -366914,6 +367430,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -369081,6 +369600,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -371130,6 +371652,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -373297,6 +373822,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -374244,6 +374772,9 @@
             "global_name": {
                 "type": "string"
             },
+            "legacy_username": {
+                "type": "string"
+            },
             "discriminator": {
                 "type": "string"
             },
@@ -375443,6 +375974,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -377610,6 +378144,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -379662,6 +380199,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -381829,6 +382369,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -383881,6 +384424,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -386048,6 +386594,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -388100,6 +388649,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -390267,6 +390819,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -391217,6 +391772,9 @@
             "global_name": {
                 "type": "string"
             },
+            "legacy_username": {
+                "type": "string"
+            },
             "discriminator": {
                 "type": "string"
             },
@@ -392416,6 +392974,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -394583,6 +395144,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -396633,6 +397197,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -398800,6 +399367,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -400850,6 +401420,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -403017,6 +403590,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -405067,6 +405643,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -407234,6 +407813,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -409286,6 +409868,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -411453,6 +412038,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -413505,6 +414093,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -415672,6 +416263,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -417724,6 +418318,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -419891,6 +420488,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -421943,6 +422543,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -424110,6 +424713,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -426162,6 +426768,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -428329,6 +428938,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -430450,6 +431062,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -432617,6 +433232,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -434669,6 +435287,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -436836,6 +437457,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -438888,6 +439512,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -441055,6 +441682,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -443107,6 +443737,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -445274,6 +445907,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -447373,6 +448009,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -449540,6 +450179,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -451828,6 +452470,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -453995,6 +454640,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -456047,6 +456695,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -458214,6 +458865,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -460266,6 +460920,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -462433,6 +463090,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -464485,6 +465145,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -466652,6 +467315,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -468704,6 +469370,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -470871,6 +471540,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -472949,6 +473621,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -475116,6 +475791,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -477168,6 +477846,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -479335,6 +480016,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -481408,6 +482092,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -483575,6 +484262,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -485641,6 +486331,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -487808,6 +488501,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -489986,6 +490682,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -492153,6 +492852,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -494232,6 +494934,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -496399,6 +497104,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -498469,6 +499177,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -500636,6 +501347,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -502698,6 +503412,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -504865,6 +505582,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -506927,6 +507647,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -509094,6 +509817,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -511143,6 +511869,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -513310,6 +514039,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -515371,6 +516103,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -517538,6 +518273,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -519614,6 +520352,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -521781,6 +522522,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -523861,6 +524605,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -526028,6 +526775,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -528087,6 +528837,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -530254,6 +531007,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -532312,6 +533068,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -534479,6 +535238,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -536537,6 +537299,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -538704,6 +539469,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -540768,6 +541536,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
@@ -542935,6 +543706,9 @@
                     "global_name": {
                         "type": "string"
                     },
+                    "legacy_username": {
+                        "type": "string"
+                    },
                     "discriminator": {
                         "type": "string"
                     },
diff --git a/src/api/routes/users/#id/profile.ts b/src/api/routes/users/#id/profile.ts
index eecec0f3..4639b84c 100644
--- a/src/api/routes/users/#id/profile.ts
+++ b/src/api/routes/users/#id/profile.ts
@@ -111,6 +111,7 @@ router.get(
 			user_profile: userProfile,
 			guild_member: guild_member?.toPublicMember(),
 			guild_member_profile: guild_id && guildMemberProfile,
+			legacy_username: user.legacy_username, // part of the uniqueUsernames feature, only used for migrated accounts
 		});
 	},
 );
diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts
index fea8ad49..acd2ea74 100644
--- a/src/util/entities/User.ts
+++ b/src/util/entities/User.ts
@@ -38,6 +38,7 @@ import { UserSettings } from "./UserSettings";
 export enum PublicUserEnum {
 	username,
 	global_name,
+	legacy_username,
 	discriminator,
 	id,
 	public_flags,
@@ -92,7 +93,10 @@ export class User extends BaseClass {
 	username: string; // username max length 32, min 2 (should be configurable)
 
 	@Column({ nullable: true })
-	global_name?: string; // puyo: uniqueUsernames
+	global_name?: string; // puyo: part of the uniqueUsernames feature, this is the users "nickname"
+
+	@Column({ nullable: true })
+	legacy_username?: string; // puyo: part of the uniqueUsernames feature, shows the users old username (only used for migrated accounts)
 
 	@Column()
 	discriminator: string; // opaque string: 4 digits on discord.com, 0 for uniqueUsernames