new team entity
This commit is contained in:
22
dataconnect/schema/team.gql
Normal file
22
dataconnect/schema/team.gql
Normal 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")
|
||||
}
|
||||
Reference in New Issue
Block a user