mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
43 lines
824 B
TypeScript
43 lines
824 B
TypeScript
import { UserContact as DbUserContact } from '@entity/UserContact'
|
|
import { ObjectType, Field, Int } from 'type-graphql'
|
|
|
|
@ObjectType()
|
|
export class UserContact {
|
|
constructor(userContact: DbUserContact) {
|
|
Object.assign(this, userContact)
|
|
}
|
|
|
|
@Field(() => Int)
|
|
id: number
|
|
|
|
@Field(() => Int)
|
|
userId: number
|
|
|
|
@Field(() => String)
|
|
email: string
|
|
|
|
@Field(() => Boolean)
|
|
gmsPublishEmail: boolean
|
|
|
|
@Field(() => Boolean)
|
|
emailChecked: boolean
|
|
|
|
@Field(() => String, { nullable: true })
|
|
countryCode: string | null
|
|
|
|
@Field(() => String, { nullable: true })
|
|
phone: string | null
|
|
|
|
@Field(() => Int)
|
|
gmsPublishPhone: number
|
|
|
|
@Field(() => Date)
|
|
createdAt: Date
|
|
|
|
@Field(() => Date, { nullable: true })
|
|
updatedAt: Date | null
|
|
|
|
@Field(() => Date, { nullable: true })
|
|
deletedAt: Date | null
|
|
}
|