Added support for custom user avatars

* Added support for custom user avatars
This commit is contained in:
Michael Green
2024-02-06 19:43:15 +11:00
committed by GitHub
parent 645327bdd1
commit 3c451f5558
12 changed files with 309 additions and 17 deletions

View File

@@ -0,0 +1,11 @@
CREATE TABLE `UserAvatars` (
`UserId` VARCHAR(128) NOT NULL,
`Id` VARCHAR(45) NOT NULL,
`Avatar` LONGBLOB NULL,
PRIMARY KEY (`UserId`),
INDEX `idx_AvatarId` (`Id` ASC) VISIBLE,
CONSTRAINT `ApplicationUser_Avatar`
FOREIGN KEY (`UserId`)
REFERENCES `Users` (`Id`)
ON DELETE CASCADE
ON UPDATE NO ACTION);