summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorZvan Milisavljević <112730082+JustZvan@users.noreply.github.com>2026-03-30 13:13:19 +0200
committerGitHub <noreply@github.com>2026-03-30 13:13:19 +0200
commit3a4611cf51a1f5a5e6f3dd8b12f0fb31eda1a950 (patch)
treef2dcb99cec464f0576a2f9815ce81afd866f485c /src/db
parent7beacb50b1f3febf23abbcc41b8d5602cf12a28b (diff)
parent4f34bdf4de0d847591faa3e6981eafdf2b80a0b7 (diff)
feat: add gallery scanning (#1)
feat: add gallery scanning
Diffstat (limited to 'src/db')
-rw-r--r--src/db/schema.ts16
1 files changed, 14 insertions, 2 deletions
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 */