Initial commit of Vellum, an event photo product for guest uploads, host moderation, and original-quality galleries.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-07 19:36:14 -04:00
co-authored by Cursor
commit 27e2f196eb
149 changed files with 13847 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { auditEvents, type Database } from "@album/database";
import { getDb } from "@album/database";
export async function writeAudit(
input: {
groupId?: string | null;
eventId?: string | null;
actorUserId?: string | null;
action: string;
subjectType: string;
subjectId: string;
metadata?: Record<string, string | number | boolean | null>;
},
db: Database = getDb(),
) {
await db.insert(auditEvents).values({
groupId: input.groupId ?? null,
eventId: input.eventId ?? null,
actorUserId: input.actorUserId ?? null,
action: input.action,
subjectType: input.subjectType,
subjectId: input.subjectId,
metadata: input.metadata ?? {},
});
}