Skip to content

Commit

Permalink
feat: Add email phone and check in key (#321)
Browse files Browse the repository at this point in the history
* participantSchema => email + phone

* migration participantSchema

* Checkin-key

---------

Co-authored-by: vaidyanath b <[email protected]>
  • Loading branch information
alllenshibu and vaidyanath-b authored Feb 27, 2024
1 parent c6fba2f commit b6252fb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "Participant" ADD COLUMN "email" TEXT,
ADD COLUMN "phone" TEXT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Warnings:
- Added the required column `checkInKey` to the `Participant` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Participant" ADD COLUMN "checkInKey" TEXT NOT NULL;
4 changes: 4 additions & 0 deletions packages/database/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ model Participant {
updatedAt DateTime @updatedAt
firstName String
lastName String?
email String?
phone String?
checkInKey String?
eventId String @db.Uuid
event Event @relation(fields: [eventId], references: [id])
organizationId String
Expand All @@ -79,6 +82,7 @@ model Participant {
participantAttributes ParticipantAttributes[]
participantExtras ParticipantExtras[]
participantExtrasCheckIn ParticipantExtrasCheckIn[]
}

model ParticipantCheckIn {
Expand Down

0 comments on commit b6252fb

Please sign in to comment.