mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
28 lines
469 B
TypeScript
28 lines
469 B
TypeScript
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;
|
|
}
|