-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(schema): add gender and nationality fields to EndUser model (#2991)
- 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
1 parent
11ad58f
commit 5e57b9b
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
services/workflows-service/prisma/migrations/20250127124649_add_enduser_fields/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters