mirror of
https://github.com/aljazceru/landscape-template.git
synced 2025-12-30 12:34:19 +01:00
feat: update db schema
This commit is contained in:
@@ -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;
|
||||
@@ -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])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user