mirror of
https://github.com/LucasVbr/meeting-app.git
synced 2026-05-13 17:21:53 +00:00
Add sex to User db model
Took 3 minutes
This commit is contained in:
@@ -18,6 +18,8 @@ model User {
|
||||
bio String?
|
||||
location String?
|
||||
images String[]
|
||||
birthdate DateTime?
|
||||
sex Sex?
|
||||
role Role @default(USER)
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
@@ -73,6 +75,11 @@ model Message {
|
||||
Chat Chat? @relation(fields: [ChatID], references: [id])
|
||||
}
|
||||
|
||||
enum Sex {
|
||||
MALE
|
||||
FEMALE
|
||||
}
|
||||
|
||||
enum Role {
|
||||
USER
|
||||
ADMIN
|
||||
|
||||
Reference in New Issue
Block a user