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