mirror of
https://github.com/GithubOrgProjectPiza/server.git
synced 2026-09-04 00:26:07 +02:00
Remove testroutes; Update register endpoint; Add Redis lib
This commit is contained in:
@@ -16,6 +16,7 @@ model User {
|
||||
passwordHash String
|
||||
passwordSalt String
|
||||
role Role @default(USER)
|
||||
status Status @default(UNVERIFIED)
|
||||
organization Organization @relation(fields: [organizationId], references: [id])
|
||||
organizationId Int
|
||||
orders Order[]
|
||||
@@ -64,3 +65,8 @@ enum Role {
|
||||
USER
|
||||
ADMIN
|
||||
}
|
||||
enum Status {
|
||||
UNVERIFIED
|
||||
VERIFIED
|
||||
ENABLED
|
||||
}
|
||||
Reference in New Issue
Block a user