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())