diff --git a/prisma/migrations/20220908065418_add_email_and_hackingstatus_to_tournament_participant/migration.sql b/prisma/migrations/20220908065418_add_email_and_hackingstatus_to_tournament_participant/migration.sql new file mode 100644 index 0000000..2b563a1 --- /dev/null +++ b/prisma/migrations/20220908065418_add_email_and_hackingstatus_to_tournament_participant/migration.sql @@ -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; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index ae9d461..974fc53 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -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]) }