feat: update db schema

This commit is contained in:
MTG2000
2022-09-08 09:54:34 +03:00
parent 15e7583fb6
commit f7d86633b3
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
/*
Warnings:
- Added the required column `email` to the `TournamentParticipant` table without a default value. This is not possible if the table is not empty.
- Added the required column `hacking_status` to the `TournamentParticipant` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "TournamentParticipant" ADD COLUMN "email" TEXT NOT NULL,
ADD COLUMN "hacking_status" INTEGER NOT NULL;

View File

@@ -350,6 +350,9 @@ model TournamentParticipant {
user User @relation(fields: [user_id], references: [id])
user_id Int
email String
hacking_status Int
@@id([tournament_id, user_id])
}