mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
23 lines
420 B
TypeScript
23 lines
420 B
TypeScript
import { jsonb, pgSchema, varchar } from "drizzle-orm/pg-core";
|
|
|
|
export const schema = pgSchema("kyoo");
|
|
|
|
export const language = () => varchar({ length: 255 });
|
|
|
|
export const image = () =>
|
|
jsonb().$type<{ source: string; blurhash: string }>();
|
|
|
|
export const externalid = () =>
|
|
jsonb()
|
|
.$type<
|
|
Record<
|
|
string,
|
|
{
|
|
dataId: string;
|
|
link: string | null;
|
|
}
|
|
>
|
|
>()
|
|
.notNull()
|
|
.default({});
|