chore: added existing auth guard and user model
This commit is contained in:
27
packages/hoppscotch-backend/src/user/user.model.ts
Normal file
27
packages/hoppscotch-backend/src/user/user.model.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { ObjectType, ID, Field } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class User {
|
||||
@Field(() => ID, {
|
||||
description: 'Firebase UID of the user',
|
||||
})
|
||||
uid: string;
|
||||
|
||||
@Field({
|
||||
nullable: true,
|
||||
description: 'Displayed name of the user (if given)',
|
||||
})
|
||||
displayName?: string;
|
||||
|
||||
@Field({
|
||||
nullable: true,
|
||||
description: 'Email of the user (if given)',
|
||||
})
|
||||
email?: string;
|
||||
|
||||
@Field({
|
||||
nullable: true,
|
||||
description: 'URL to the profile photo of the user (if given)',
|
||||
})
|
||||
photoURL?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user