✨ Add created_at field to User and Item models and update endpoints (#2144)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user