mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Store image id instead of low/middle/high uri
This commit is contained in:
parent
00774230af
commit
f53e8e3611
@ -5,7 +5,7 @@ export const schema = pgSchema("kyoo");
|
|||||||
export const language = () => varchar({ length: 255 });
|
export const language = () => varchar({ length: 255 });
|
||||||
|
|
||||||
export const image = () =>
|
export const image = () =>
|
||||||
jsonb().$type<{ source: string; blurhash: string }>();
|
jsonb().$type<{ id: string; source: string; blurhash: string }>();
|
||||||
|
|
||||||
export const externalid = () =>
|
export const externalid = () =>
|
||||||
jsonb()
|
jsonb()
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
import { t } from "elysia";
|
import { t } from "elysia";
|
||||||
|
|
||||||
export const Image = t.Object({
|
export const Image = t.Object({
|
||||||
|
id: t.String({ format: "uuid" }),
|
||||||
source: t.String({ format: "uri" }),
|
source: t.String({ format: "uri" }),
|
||||||
blurhash: t.String(),
|
blurhash: t.String(),
|
||||||
low: t.String({ format: "uri" }),
|
|
||||||
medium: t.String({ format: "uri" }),
|
|
||||||
high: t.String({ format: "uri" }),
|
|
||||||
});
|
});
|
||||||
export type Image = typeof Image.static;
|
export type Image = typeof Image.static;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user