Skip to content

Commit

Permalink
feat(schema): add gender and nationality fields to EndUser model (#2991)
Browse files Browse the repository at this point in the history
- Introduce Gender enum to represent user gender options
- Add nationality and passportNumber fields to EndUser model
- Refactor Alert model for better readability

(Your schema changes are so dramatic, they deserve a Netflix series)
  • Loading branch information
shanegrouber authored Jan 29, 2025
1 parent 11ad58f commit 5e57b9b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- CreateEnum
CREATE TYPE "Gender" AS ENUM ('male', 'female', 'other');

-- AlterTable
ALTER TABLE "EndUser" ADD COLUMN "address" JSONB,
ADD COLUMN "gender" "Gender",
ADD COLUMN "nationality" VARCHAR,
ADD COLUMN "passportNumber" VARCHAR;
10 changes: 10 additions & 0 deletions services/workflows-service/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ enum ApprovalState {
NEW
}

enum Gender {
male
female
other
}

model EndUser {
id String @id @default(cuid())
isContactPerson Boolean @default(false)
Expand All @@ -71,6 +77,10 @@ model EndUser {
dateOfBirth DateTime?
avatarUrl String?
nationalId String? @db.VarChar
gender Gender?
nationality String? @db.VarChar
passportNumber String? @db.VarChar
address Json?
additionalInfo Json?
activeMonitorings Json @default("[]")
amlHits Json @default("[]")
Expand Down

0 comments on commit 5e57b9b

Please sign in to comment.