mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
WIP
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { Field, ObjectType, registerEnumType } from '@nestjs/graphql';
|
||||
import { UserAvatarColor } from 'src/enum';
|
||||
|
||||
registerEnumType(UserAvatarColor, {
|
||||
name: 'UserAvatarColor',
|
||||
});
|
||||
|
||||
@ObjectType()
|
||||
export class User {
|
||||
@Field()
|
||||
id!: string;
|
||||
|
||||
@Field()
|
||||
name!: string;
|
||||
|
||||
@Field()
|
||||
email!: string;
|
||||
|
||||
@Field(() => UserAvatarColor)
|
||||
avatarColor!: UserAvatarColor;
|
||||
|
||||
@Field()
|
||||
profileImagePath!: string;
|
||||
|
||||
@Field({ nullable: true })
|
||||
profileChangedAt!: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user