refactor(arabot): change naming for xp to next level

This commit is contained in:
smyalygames
2023-03-10 22:57:35 +00:00
parent 304f5996fb
commit f76cc38df0
3 changed files with 24 additions and 15 deletions

View File

@@ -0,0 +1,9 @@
/*
Warnings:
- You are about to drop the column `xpToNextLevel` on the `Xp` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Xp" DROP COLUMN "xpToNextLevel",
ADD COLUMN "xpForNextLevel" INTEGER NOT NULL DEFAULT 0;

View File

@@ -98,13 +98,13 @@ model Verify {
}
model Xp {
user User @relation(fields: [userId], references: [id])
userId String @id
level Int @default(0)
xp Int @default(0)
xpToNextLevel Int @default(0)
messageCount Int @default(0)
lastMessage DateTime @default(now())
user User @relation(fields: [userId], references: [id])
userId String @id
level Int @default(0)
xp Int @default(0)
xpForNextLevel Int @default(0)
messageCount Int @default(0)
lastMessage DateTime @default(now())
}
// Economy