feat: added fields for user-session of rest and gql
This commit is contained in:
@@ -79,10 +79,12 @@ model TeamEnvironment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model User {
|
model User {
|
||||||
uid String @id @default(cuid())
|
uid String @id @default(cuid())
|
||||||
displayName String?
|
displayName String?
|
||||||
email String?
|
email String?
|
||||||
photoURL String?
|
photoURL String?
|
||||||
|
currentRESTSession String?
|
||||||
|
currentGQLSession String?
|
||||||
}
|
}
|
||||||
|
|
||||||
enum TeamMemberRole {
|
enum TeamMemberRole {
|
||||||
|
|||||||
@@ -24,4 +24,16 @@ export class User {
|
|||||||
description: 'URL to the profile photo of the user (if given)',
|
description: 'URL to the profile photo of the user (if given)',
|
||||||
})
|
})
|
||||||
photoURL?: string;
|
photoURL?: string;
|
||||||
|
|
||||||
|
@Field({
|
||||||
|
nullable: true,
|
||||||
|
description: 'JSON string of current REST session for logged-in User',
|
||||||
|
})
|
||||||
|
currentRESTSession?: string;
|
||||||
|
|
||||||
|
@Field({
|
||||||
|
nullable: true,
|
||||||
|
description: 'JSON string of current GraphQL session for logged-in User',
|
||||||
|
})
|
||||||
|
currentGQLSession?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user