From 17b683f131ead177a8fcc84d5896c2339832a0df Mon Sep 17 00:00:00 2001 From: Kirill Date: Tue, 19 May 2026 15:14:38 +0500 Subject: [PATCH] feat: remove InfoPageBlock model from Prisma schema --- .../migration.sql | 10 ++++++++++ server/prisma/schema.prisma | 13 ------------- 2 files changed, 10 insertions(+), 13 deletions(-) create mode 100644 server/prisma/migrations/20260519095803_remove_infopageblock/migration.sql diff --git a/server/prisma/migrations/20260519095803_remove_infopageblock/migration.sql b/server/prisma/migrations/20260519095803_remove_infopageblock/migration.sql new file mode 100644 index 0000000..2ecacbb --- /dev/null +++ b/server/prisma/migrations/20260519095803_remove_infopageblock/migration.sql @@ -0,0 +1,10 @@ +/* + Warnings: + + - You are about to drop the `InfoPageBlock` table. If the table is not empty, all the data it contains will be lost. + +*/ +-- DropTable +PRAGMA foreign_keys=off; +DROP TABLE "InfoPageBlock"; +PRAGMA foreign_keys=on; diff --git a/server/prisma/schema.prisma b/server/prisma/schema.prisma index 2e34bc3..c2c6a83 100644 --- a/server/prisma/schema.prisma +++ b/server/prisma/schema.prisma @@ -259,19 +259,6 @@ model AuthCode { @@index([expiresAt]) } -model InfoPageBlock { - id String @id @default(cuid()) - key String @unique - title String - body String - sort Int @default(0) - published Boolean @default(true) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - - @@index([published, sort]) -} - /// Настройки оповещений пользователя model NotificationPreference { id String @id @default(cuid())