user entitie
This commit is contained in:
15
dataconnect/schema/user.gql
Normal file
15
dataconnect/schema/user.gql
Normal file
@@ -0,0 +1,15 @@
|
||||
enum UserBaseRole {
|
||||
ADMIN
|
||||
USER
|
||||
}
|
||||
|
||||
type User @table(name: "users") {
|
||||
id: UUID! # user_id / uid de Firebase
|
||||
email: String!
|
||||
fullName: String!
|
||||
role: UserBaseRole!
|
||||
userRole: 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