From 4f34bdf4de0d847591faa3e6981eafdf2b80a0b7 Mon Sep 17 00:00:00 2001 From: JustZvan Date: Mon, 30 Mar 2026 13:10:26 +0200 Subject: feat: add gallery scanning --- src/db/schema.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/db') diff --git a/src/db/schema.ts b/src/db/schema.ts index ed2e36b..fe58708 100644 --- a/src/db/schema.ts +++ b/src/db/schema.ts @@ -1,7 +1,18 @@ -import { integer, pgTable, varchar, boolean, text, pgEnum } from "drizzle-orm/pg-core"; +import { + integer, + pgTable, + varchar, + boolean, + text, + pgEnum, +} from "drizzle-orm/pg-core"; import { defineRelations, sql } from "drizzle-orm"; -export const galleryScanningMode = pgEnum("galleryScanningMode", ["delete", "notify", "none"]); +export const galleryScanningMode = pgEnum("galleryScanningMode", [ + "delete", + "notify", + "none", +]); /** Parent user accounts with email auth and push notification tokens */ export const users = pgTable("users", { @@ -41,6 +52,7 @@ export const deviceConfig = pgTable("deviceConfig", { notifyNewContactAdded: boolean("notify_new_contact_added") .notNull() .default(true), + galleryScanningMode: galleryScanningMode().default("notify").notNull(), }); /** Stores flagged messages and content alerts for parent review */ -- cgit v1.2.3