feat: Organization services

This commit is contained in:
sauravdhakal12
2026-02-22 15:47:45 +05:45
parent f4c9174752
commit afed1731d2
42 changed files with 862 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
model OrganizationUserJoinTable {
userId String
orgId String
role ORG_ROLE @default(user)
role ORG_ROLE @default(member)
joinedDate DateTime @default(now())
@@unique([userId, orgId])
@@ -9,6 +9,7 @@ model OrganizationUserJoinTable {
}
enum ORG_ROLE {
owner
admin
user
member
}