update schema due to majority database change
This commit is contained in:
@@ -35,10 +35,6 @@ export class UserSchema extends PothosSchema {
|
||||
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.',
|
||||
}),
|
||||
@@ -52,9 +48,33 @@ export class UserSchema extends PothosSchema {
|
||||
nullable: true,
|
||||
description: 'The date and time the user was updated.',
|
||||
}),
|
||||
orders: t.relation('orders', {
|
||||
description: 'The orders of the user.',
|
||||
}),
|
||||
serviceFeedbacks: t.relation('serviceFeedbacks', {
|
||||
description: 'The service feedbacks of the user.',
|
||||
}),
|
||||
files: t.relation('files', {
|
||||
description: 'The files of the user.',
|
||||
}),
|
||||
sendingMessage: t.relation('sendingMessage', {
|
||||
description: 'The sending message of the user.',
|
||||
}),
|
||||
center: t.relation('center', {
|
||||
description: 'The center of the user.',
|
||||
}),
|
||||
customerChatRoom: t.relation('customerChatRoom', {
|
||||
description: 'The customer chat room of the user.',
|
||||
}),
|
||||
centerStaffChatRoom: t.relation('centerStaffChatRoom', {
|
||||
description: 'The center staff chat room of the user.',
|
||||
}),
|
||||
CenterStaff: t.relation('CenterStaff', {
|
||||
description: 'The center staff of the user.',
|
||||
}),
|
||||
WorkshopSubscription: t.relation('WorkshopSubscription', {
|
||||
description: 'The workshop subscription of the user.',
|
||||
}),
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user