feat: added fields for user-session of rest and gql
This commit is contained in:
parent
c34379d936
commit
c42b6e2fdb
2 changed files with 18 additions and 4 deletions
|
|
@ -79,10 +79,12 @@ model TeamEnvironment {
|
|||
}
|
||||
|
||||
model User {
|
||||
uid String @id @default(cuid())
|
||||
displayName String?
|
||||
email String?
|
||||
photoURL String?
|
||||
uid String @id @default(cuid())
|
||||
displayName String?
|
||||
email String?
|
||||
photoURL String?
|
||||
currentRESTSession String?
|
||||
currentGQLSession String?
|
||||
}
|
||||
|
||||
enum TeamMemberRole {
|
||||
|
|
|
|||
|
|
@ -24,4 +24,16 @@ export class User {
|
|||
description: 'URL to the profile photo of the user (if given)',
|
||||
})
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue