Entry Update 2

This commit is contained in:
EdiFarcas
2025-05-05 21:42:29 +03:00
parent bcc11ddbc1
commit ad25daea04
6 changed files with 95 additions and 29 deletions
@@ -0,0 +1,10 @@
/*
Warnings:
- You are about to drop the column `weight` on the `Entry` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Entry" DROP COLUMN "weight",
ADD COLUMN "acive" BOOLEAN NOT NULL DEFAULT true,
ADD COLUMN "pastValue" INTEGER NOT NULL DEFAULT 0;
+2 -1
View File
@@ -78,5 +78,6 @@ model Entry {
userId String
giveaway Giveaway @relation(fields: [giveawayId], references: [id])
giveawayId String
weight Float
acive Boolean @default(true)
pastValue Int @default(0)
}