new team entity

This commit is contained in:
José Salazar
2025-11-26 09:29:33 -05:00
parent ba227b4bd5
commit 29d5c78715
3 changed files with 116 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
enum TeamOwnerRole {
ADMIN
PROCUREMENT
OPERATOR
SECTOR
CLIENT
VENDOR
WORKFORCE
}
type Team @table(name: "team") {
id: UUID! @default(expr: "uuidV4()")
teamName: String!
ownerId: UUID!
ownerName: String!
ownerRole: TeamOwnerRole!
favoriteStaff: String
blockedStaff: String
createdDate: Timestamp @default(expr: "request.time")
updatedDate: Timestamp @default(expr: "request.time")
createdBy: String @default(expr: "auth.uid")
}