feat: store image metadata in sqlite and images on disk

This commit is contained in:
2025-01-05 21:27:31 +01:00
parent bf7d88a588
commit 20a2781214
18 changed files with 641 additions and 379 deletions

View File

@ -38,7 +38,7 @@ export const imageTable = sqliteTable("image", {
createdAt: integer("created_at", { mode: "timestamp" }).default(
sql`(current_timestamp)`,
),
path: text().notNull(),
url: text().notNull(),
average: text().notNull(),
blurhash: text().notNull(),
mime: text().notNull(),

View File

@ -7,7 +7,7 @@ const DB_FILE = "file:data-dev/db.sqlite";
// You can specify any property from the libsql connection options
export const db = drizzle({
logger: true,
// logger: true,
connection: {
url: DB_FILE,
},