diff --git a/api/src/db/schema/utils.ts b/api/src/db/schema/utils.ts index 1183628a..02f6e8af 100644 --- a/api/src/db/schema/utils.ts +++ b/api/src/db/schema/utils.ts @@ -5,7 +5,7 @@ export const schema = pgSchema("kyoo"); export const language = () => varchar({ length: 255 }); export const image = () => - jsonb().$type<{ source: string; blurhash: string }>(); + jsonb().$type<{ id: string; source: string; blurhash: string }>(); export const externalid = () => jsonb() diff --git a/api/src/models/image.ts b/api/src/models/image.ts index 0ff56c9e..407de425 100644 --- a/api/src/models/image.ts +++ b/api/src/models/image.ts @@ -1,10 +1,8 @@ import { t } from "elysia"; export const Image = t.Object({ + id: t.String({ format: "uuid" }), source: t.String({ format: "uri" }), blurhash: t.String(), - low: t.String({ format: "uri" }), - medium: t.String({ format: "uri" }), - high: t.String({ format: "uri" }), }); export type Image = typeof Image.static;