Skip to content

Commit

Permalink
added user to schema of the noteHistoryRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed Jul 31, 2024
1 parent a15f244 commit 9802d0b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/presentation/http/schema/History.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const HistotyRecordShema = {
'userId',
'createdAt',
'tools',
'user',
],
properties: {
id: {
Expand All @@ -29,6 +30,19 @@ export const HistotyRecordShema = {
type: 'string',
format: 'date-time',
},
user: {
type: 'object',
properties: {
name: {
description: 'name of the user',
type: 'string',
},
photo: {
description: 'photo of the user',
type: 'string',
},
},
},
content: {
description: 'content of certain version of the note',
type: 'object',
Expand Down Expand Up @@ -69,6 +83,7 @@ export const HistoryMetaSchema = {
'id',
'userId',
'createdAt',
'user',
],
properties: {
id: {
Expand Down

0 comments on commit 9802d0b

Please sign in to comment.