phong bat
This commit is contained in:
@@ -23,15 +23,38 @@ export class UserSchema extends PothosSchema {
|
||||
return this.builder.prismaObject('User', {
|
||||
description: 'A user in the system.',
|
||||
fields: (t) => ({
|
||||
id: t.exposeID('id'),
|
||||
name: t.exposeString('name'),
|
||||
email: t.exposeString('email'),
|
||||
phoneNumber: t.exposeString('phoneNumber'),
|
||||
oauthToken: t.exposeString('oauthToken', { nullable: true }),
|
||||
role: t.exposeString('role'),
|
||||
createdAt: t.expose('createdAt', { type: 'DateTime' }),
|
||||
updatedAt: t.expose('updatedAt', { type: 'DateTime' }),
|
||||
center: t.relation('center'),
|
||||
id: t.exposeID('id', {
|
||||
description: 'The ID of the user.',
|
||||
}),
|
||||
name: t.exposeString('name', {
|
||||
description: 'The name of the user.',
|
||||
}),
|
||||
email: t.exposeString('email', {
|
||||
description: 'The email of the user.',
|
||||
}),
|
||||
phoneNumber: t.exposeString('phoneNumber', {
|
||||
description: 'The phone number of the user.',
|
||||
}),
|
||||
oauthToken: t.exposeString('oauthToken', {
|
||||
nullable: true,
|
||||
description: 'The OAuth token of the user.',
|
||||
}),
|
||||
role: t.exposeString('role', {
|
||||
description: 'The role of the user.',
|
||||
}),
|
||||
createdAt: t.expose('createdAt', {
|
||||
type: 'DateTime',
|
||||
nullable: true,
|
||||
description: 'The date and time the user was created.',
|
||||
}),
|
||||
updatedAt: t.expose('updatedAt', {
|
||||
type: 'DateTime',
|
||||
nullable: true,
|
||||
description: 'The date and time the user was updated.',
|
||||
}),
|
||||
center: t.relation('center', {
|
||||
description: 'The center of the user.',
|
||||
}),
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user