Add created_at field to User and Item models and update endpoints (#2144)

This commit is contained in:
Alejandra
2026-01-23 16:18:22 +01:00
committed by GitHub
parent 2720308701
commit 3c1f7c4cdb
6 changed files with 78 additions and 2 deletions

View File

@@ -126,6 +126,18 @@ export const ItemPublicSchema = {
type: 'string',
format: 'uuid',
title: 'Owner Id'
},
created_at: {
anyOf: [
{
type: 'string',
format: 'date-time'
},
{
type: 'null'
}
],
title: 'Created At'
}
},
type: 'object',
@@ -352,6 +364,18 @@ export const UserPublicSchema = {
type: 'string',
format: 'uuid',
title: 'Id'
},
created_at: {
anyOf: [
{
type: 'string',
format: 'date-time'
},
{
type: 'null'
}
],
title: 'Created At'
}
},
type: 'object',

View File

@@ -23,6 +23,7 @@ export type ItemPublic = {
description?: (string | null);
id: string;
owner_id: string;
created_at?: (string | null);
};
export type ItemsPublic = {
@@ -75,6 +76,7 @@ export type UserPublic = {
is_superuser?: boolean;
full_name?: (string | null);
id: string;
created_at?: (string | null);
};
export type UserRegister = {