feat: User operations on join org
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
model OrganizationJoinRequest {
|
||||
userId String
|
||||
orgId String
|
||||
status ORGANIZATION_JOIN_REQUEST @default(PENDING)
|
||||
requestType ORGANIZATION_JOIN_REQUEST_TYPE
|
||||
requestedOn DateTime @default(now())
|
||||
role ORG_ROLE @default(member)
|
||||
updatedAt DateTime @updatedAt
|
||||
rejectReason String?
|
||||
userId String
|
||||
orgId String
|
||||
status ORGANIZATION_JOIN_REQUEST @default(PENDING)
|
||||
requestType ORGANIZATION_JOIN_REQUEST_TYPE
|
||||
requestedOn DateTime @default(now())
|
||||
role ORG_ROLE @default(member)
|
||||
updatedAt DateTime @updatedAt
|
||||
rejectReason String?
|
||||
requestMessage String?
|
||||
|
||||
organization Organization @relation(fields: [orgId], references: [id], onDelete: Cascade)
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
@@ -19,6 +20,7 @@ enum ORGANIZATION_JOIN_REQUEST {
|
||||
PENDING
|
||||
ACCEPTED
|
||||
REJECTED
|
||||
CANCELLED
|
||||
}
|
||||
|
||||
enum ORGANIZATION_JOIN_REQUEST_TYPE {
|
||||
|
||||
Reference in New Issue
Block a user