Skip to content

Commit

Permalink
feat: create user datamodel file
Browse files Browse the repository at this point in the history
  • Loading branch information
selena1108 committed Oct 14, 2023
1 parent a1712ca commit d590acd
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions backend/typescript/models/user-model.prisma
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
model User
{
“id”: ID
"first_name": string
"last_name": string
"email": string
"phone_number"?: string
"display_name": string
"profile_picture_link"?: string
}

model Staff extends User
{
"role": StaffRoles
}

enum StaffRoles
{
ADMIN
CORE
RELIEF
}

model Resident extends User
{
"birthdate"?: Date
"credits": decimal
"date_joined": Date
"date_left": Date
"pregancy_status":
}

0 comments on commit d590acd

Please sign in to comment.