feat/Update_Controllers_to_Allow_for_Premium_Membership

This commit is contained in:
cesnimda
2026-08-03 09:17:28 +02:00
parent de937d25dc
commit c3f4a57195
187 changed files with 26062 additions and 991 deletions
@@ -0,0 +1,8 @@
START TRANSACTION;
DROP TABLE `UserNotifications`;
DELETE FROM `__EFMigrationsHistory`
WHERE `MigrationId` = '20260802225941_AddUserNotifications';
COMMIT;
@@ -0,0 +1,26 @@
START TRANSACTION;
CREATE TABLE `UserNotifications` (
`Id` char(36) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL,
`OwnerUserId` varchar(255) NOT NULL,
`OperationId` char(36) CHARACTER SET ascii COLLATE ascii_general_ci NULL,
`Kind` varchar(64) NOT NULL,
`Title` varchar(160) NOT NULL,
`Message` varchar(512) NOT NULL,
`LinkPath` varchar(256) NULL,
`CreatedAtUtc` datetime(6) NOT NULL,
`ReadAtUtc` datetime(6) NULL,
`DismissedAtUtc` datetime(6) NULL,
CONSTRAINT `PK_UserNotifications` PRIMARY KEY (`Id`),
CONSTRAINT `FK_UserNotifications_UserOperations_OperationId`
FOREIGN KEY (`OperationId`) REFERENCES `UserOperations` (`Id`) ON DELETE SET NULL
) CHARACTER SET=utf8mb4;
CREATE UNIQUE INDEX `IX_UserNotifications_OperationId` ON `UserNotifications` (`OperationId`);
CREATE INDEX `IX_UserNotifications_OwnerUserId_DismissedAtUtc_ReadAtUtc_Create` ON `UserNotifications` (`OwnerUserId`, `DismissedAtUtc`, `ReadAtUtc`, `CreatedAtUtc`);
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`)
VALUES ('20260802225941_AddUserNotifications', '9.0.14');
COMMIT;
@@ -0,0 +1,8 @@
BEGIN TRANSACTION;
DROP TABLE "UserNotifications";
DELETE FROM "__EFMigrationsHistory"
WHERE "MigrationId" = '20260802225941_AddUserNotifications';
COMMIT;
@@ -0,0 +1,24 @@
BEGIN TRANSACTION;
CREATE TABLE "UserNotifications" (
"Id" TEXT NOT NULL CONSTRAINT "PK_UserNotifications" PRIMARY KEY,
"OwnerUserId" TEXT NOT NULL,
"OperationId" TEXT NULL,
"Kind" TEXT NOT NULL,
"Title" TEXT NOT NULL,
"Message" TEXT NOT NULL,
"LinkPath" TEXT NULL,
"CreatedAtUtc" TEXT NOT NULL,
"ReadAtUtc" TEXT NULL,
"DismissedAtUtc" TEXT NULL,
CONSTRAINT "FK_UserNotifications_UserOperations_OperationId" FOREIGN KEY ("OperationId") REFERENCES "UserOperations" ("Id") ON DELETE SET NULL
);
CREATE UNIQUE INDEX "IX_UserNotifications_OperationId" ON "UserNotifications" ("OperationId");
CREATE INDEX "IX_UserNotifications_OwnerUserId_DismissedAtUtc_ReadAtUtc_CreatedAtUtc" ON "UserNotifications" ("OwnerUserId", "DismissedAtUtc", "ReadAtUtc", "CreatedAtUtc");
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20260802225941_AddUserNotifications', '9.0.14');
COMMIT;