feat: Organization operations like invite and accept
This commit is contained in:
@@ -4,9 +4,13 @@ model OrganizationJoinRequest {
|
||||
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?
|
||||
|
||||
organization Organization @relation(fields: [orgId], references: [id], onDelete: Cascade)
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([userId, orgId])
|
||||
@@map("organization_join_request")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user