feat: Added methods for organization
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
model OrganizationJoinRequest {
|
||||
id String @id @default(uuid())
|
||||
userId String
|
||||
orgId String
|
||||
status ORGANIZATION_JOIN_REQUEST @default(PENDING)
|
||||
@@ -12,7 +13,8 @@ model OrganizationJoinRequest {
|
||||
organization Organization @relation(fields: [orgId], references: [id], onDelete: Cascade)
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([userId, orgId])
|
||||
// @@unique([userId, orgId])
|
||||
@@index([userId, orgId])
|
||||
@@map("organization_join_request")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user