From 02b42fc49b1727dd82a132877930442c3cd4e225 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 19 May 2023 15:46:52 -0400 Subject: [PATCH] add legacy_username user field --- assets/openapi.json | 12 + assets/schemas.json | 768 ++++++++++++++++++++++++++++ src/api/routes/users/#id/profile.ts | 1 + src/util/entities/User.ts | 6 +- 4 files changed, 786 insertions(+), 1 deletion(-) diff --git a/assets/openapi.json b/assets/openapi.json index 8e2b9383b..5d22c7576 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -1354,6 +1354,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -3479,6 +3482,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -6976,6 +6982,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -7096,6 +7105,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, diff --git a/assets/schemas.json b/assets/schemas.json index 46c70cdb6..8672514f0 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -1485,6 +1485,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -3643,6 +3646,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -5701,6 +5707,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -7859,6 +7868,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -9917,6 +9929,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -12075,6 +12090,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -14128,6 +14146,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -16286,6 +16307,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -18375,6 +18399,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -20533,6 +20560,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -22591,6 +22621,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -24749,6 +24782,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -26798,6 +26834,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -28956,6 +28995,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -31008,6 +31050,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -33166,6 +33211,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -35227,6 +35275,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -37385,6 +37436,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -39434,6 +39488,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -41592,6 +41649,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -43641,6 +43701,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -45799,6 +45862,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -47867,6 +47933,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -50025,6 +50094,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -52077,6 +52149,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -54235,6 +54310,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -56347,6 +56425,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -58505,6 +58586,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -60576,6 +60660,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -62734,6 +62821,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -64946,6 +65036,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -67104,6 +67197,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -69171,6 +69267,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -71329,6 +71428,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -73409,6 +73511,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -75567,6 +75672,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -77629,6 +77737,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -79787,6 +79898,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -81855,6 +81969,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -84013,6 +84130,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -86071,6 +86191,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -88229,6 +88352,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -90275,6 +90401,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -92433,6 +92562,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -94590,6 +94722,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -96748,6 +96883,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -98902,6 +99040,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -101060,6 +101201,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -103109,6 +103253,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -105267,6 +105414,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -107324,6 +107474,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -109482,6 +109635,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -111532,6 +111688,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -113690,6 +113849,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -115740,6 +115902,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -117898,6 +118063,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -119977,6 +120145,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -122135,6 +122306,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -124185,6 +124359,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -126343,6 +126520,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -128392,6 +128572,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -130550,6 +130733,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -132614,6 +132800,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -134772,6 +134961,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -136825,6 +137017,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -138983,6 +139178,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -141110,6 +141308,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -143268,6 +143469,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -145317,6 +145521,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -147475,6 +147682,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -149524,6 +149734,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -151682,6 +151895,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -153728,6 +153944,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -155886,6 +156105,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -157938,6 +158160,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -160096,6 +160321,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -162158,6 +162386,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -164316,6 +164547,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -166362,6 +166596,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -168520,6 +168757,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -170615,6 +170855,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -172773,6 +173016,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -174854,6 +175100,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -177012,6 +177261,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -179058,6 +179310,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -181216,6 +181471,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -183287,6 +183545,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -185445,6 +185706,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -187605,6 +187869,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -189763,6 +190030,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -191808,6 +192078,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -193966,6 +194239,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -196050,6 +196326,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -198208,6 +198487,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -200280,6 +200562,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -202438,6 +202723,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -204562,6 +204850,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -206720,6 +207011,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -208766,6 +209060,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -210924,6 +211221,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -212978,6 +213278,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -215136,6 +215439,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -217180,6 +217486,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -219338,6 +219647,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -221388,6 +221700,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -223546,6 +223861,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -225596,6 +225914,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -227754,6 +228075,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -229804,6 +230128,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -231962,6 +232289,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -234044,6 +234374,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -236202,6 +236535,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -238256,6 +238592,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -240414,6 +240753,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -242458,6 +242800,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -244616,6 +244961,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -246666,6 +247014,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -248824,6 +249175,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -250885,6 +251239,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -253043,6 +253400,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -255118,6 +255478,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -257276,6 +257639,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -259322,6 +259688,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -261480,6 +261849,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -263529,6 +263901,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -265687,6 +266062,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -267768,6 +268146,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -269926,6 +270307,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -271972,6 +272356,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -274130,6 +274517,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -276255,6 +276645,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -278413,6 +278806,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -280466,6 +280862,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -282624,6 +283023,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -284670,6 +285072,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -286828,6 +287233,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -288874,6 +289282,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -291032,6 +291443,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -293085,6 +293499,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -295243,6 +295660,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -297293,6 +297713,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -299451,6 +299874,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -301497,6 +301923,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -303655,6 +304084,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -305783,6 +306215,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -307941,6 +308376,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -309998,6 +310436,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -312156,6 +312597,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -314214,6 +314658,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -316372,6 +316819,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -318480,6 +318930,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -320638,6 +321091,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -322705,6 +323161,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -324863,6 +325322,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -326936,6 +327398,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -329094,6 +329559,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -331161,6 +331629,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -333319,6 +333790,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -335365,6 +335839,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -337523,6 +338000,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -339597,6 +340077,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -341755,6 +342238,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -343841,6 +344327,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -345999,6 +346488,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -348039,6 +348531,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -350197,6 +350692,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -352247,6 +352745,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -354405,6 +354906,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -356451,6 +356955,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -358609,6 +359116,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -360662,6 +361172,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -362820,6 +363333,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -365070,6 +365586,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -367228,6 +367747,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -369265,6 +369787,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -371423,6 +371948,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -372360,6 +372888,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -373557,6 +374088,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -375715,6 +376249,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -377755,6 +378292,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -379913,6 +380453,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -381953,6 +382496,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -384111,6 +384657,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -386151,6 +386700,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -388309,6 +388861,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -389249,6 +389804,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -390446,6 +391004,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -392604,6 +393165,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -394642,6 +395206,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -396800,6 +397367,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -398838,6 +399408,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -400996,6 +401569,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -403034,6 +403610,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -405192,6 +405771,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -407232,6 +407814,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -409390,6 +409975,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -411430,6 +412018,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -413588,6 +414179,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -415628,6 +416222,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -417786,6 +418383,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -419826,6 +420426,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -421984,6 +422587,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -424024,6 +424630,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -426182,6 +426791,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -428291,6 +428903,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -430449,6 +431064,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -432489,6 +433107,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -434647,6 +435268,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -436687,6 +437311,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -438845,6 +439472,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -440885,6 +441515,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -443043,6 +443676,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -449536,6 +450172,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -451694,6 +452333,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -453734,6 +454376,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -455892,6 +456537,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -457932,6 +458580,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -460090,6 +460741,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -462130,6 +462784,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -464288,6 +464945,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -466328,6 +466988,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -468486,6 +469149,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -470552,6 +471218,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -472710,6 +473379,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -474750,6 +475422,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -476908,6 +477583,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -478969,6 +479647,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -481127,6 +481808,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -483181,6 +483865,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -485339,6 +486026,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -487502,6 +488192,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -489660,6 +490353,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -491718,6 +492414,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -493876,6 +494575,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -495943,6 +496645,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -498101,6 +498806,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -500151,6 +500859,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -502309,6 +503020,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -504359,6 +505073,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -506517,6 +507234,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -508554,6 +509274,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -510712,6 +511435,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -512761,6 +513487,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -514919,6 +515648,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -516983,6 +517715,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -519141,6 +519876,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -521209,6 +521947,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -523367,6 +524108,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -525414,6 +526158,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -527572,6 +528319,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -529618,6 +530368,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -531776,6 +532529,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -533822,6 +534578,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -535980,6 +536739,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -538032,6 +538794,9 @@ "global_name": { "type": "string" }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -540190,6 +540955,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 eecec0f35..4639b84cd 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 718a7041c..6c807bae9 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -45,6 +45,7 @@ import { UserSettings } from "./UserSettings"; export enum PublicUserEnum { username, global_name, + legacy_username, discriminator, id, public_flags, @@ -99,7 +100,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