A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
feat: retain AI import sources in saved resumes
Amruth Pillaif672f5ef958d
diff --git a/apps/mobile/scripts/import-file.test.mjs b/apps/mobile/scripts/import-file.test.mjsindex 1bb808e85..d9ba9db60 100644--- a/apps/mobile/scripts/import-file.test.mjs+++ b/apps/mobile/scripts/import-file.test.mjs@@ -36,6 +36,8 @@ for (const scenario of ["partial local","scanned local","older AI",+ "legacy metadata",+ "DOCX","older local","malformed AI","changed during source",@@ -61,6 +63,8 @@ for (const scenario of [];const url = "https://www.linkedin.com/in/fictional-avery-morgan-rx216/";const prose = "Completed independent research on accessible interfaces.";+ const sources = !scenario.startsWith("older") && scenario !== "legacy metadata";+ if (scenario === "DOCX") data.sections.profiles.items[0].website.url = url;class SessionChangedError extends Error {}const mocks = {"@lingui/core/macro": { t: tag },@@ -73,21 +77,30 @@ for (const scenario of [},},"@reactive-resume/schema/cover-letter/data": {},- "@reactive-resume/import/docx-text": {},+ "@reactive-resume/import/docx-text": { extractDocxText: () => prose },"@reactive-resume/import/review": domain,"@/auth/session": { getAccountScope: () => scope },"@/api/client": {SessionChangedError,client: {ai: {- parsePdf: async () => {+ parsePdf: async (input) => {modelCalls++;- return data;+ assert.equal(input.includeProvenance, true);+ return { ...data, ...(sources ? { aiOperationIds: ["actual-import-operation"] } : {}) };+ },+ parseDocx: async (input) => {+ modelCalls++;+ assert.equal(input.includeProvenance, true);+ return { ...data, aiOperationIds: ["actual-import-operation"] };},},resume: {- import: async ({ data: accepted }) => {+ import: async ({ data: accepted, aiOperationIds }, options) => {saved++;+ assert.deepEqual(aiOperationIds, ai ? (sources ? ["actual-import-operation"] : []) : undefined);+ assert.equal(options.context.scope, "original-account");+ assert.equal("aiOperationIds" in accepted, false);assert.equal(accepted.sections.profiles.items[0].website.url, url);assert.ok(accepted.customSections.some((section) => section.items.some((item) => item.content.includes(prose))),@@ -124,7 +137,12 @@ for (const scenario of [);const { importDocument, createReviewedResume } = module.exports;const ai = !scenario.includes("local");- const reading = importDocument({ name: "fictional.pdf", uri: "fixture" }, true, ai, controller.signal);+ const reading = importDocument(+ { name: scenario === "DOCX" ? "fictional.docx" : "fictional.pdf", uri: "fixture" },+ true,+ ai,+ controller.signal,+ );if (scenario === "changed during source") {await assert.rejects(reading, SessionChangedError);assert.equal(saved, 0);@@ -153,6 +171,7 @@ for (const scenario of [}const pending = await reading;assert.equal(pending.type, "review");+ assert.deepEqual(pending.aiOperationIds, ai ? (sources ? ["actual-import-operation"] : []) : undefined);assert.equal(saved, 0, "preview must never create a resume");assert.equal(modelCalls, ai ? 1 : 0, "local reading never invokes AI");assert.equal(pending.compared, !scenario.startsWith("older") && !scenario.startsWith("malformed"));diff --git a/apps/mobile/scripts/layout.test.mjs b/apps/mobile/scripts/layout.test.mjsindex 88c03d628..1ae1e4495 100644--- a/apps/mobile/scripts/layout.test.mjs+++ b/apps/mobile/scripts/layout.test.mjs@@ -316,21 +316,47 @@ for (const width of [350, 620, 350]) {hooks.at(-1).cleanup?.();hooks.length = 0;const version = { id: "version", kind: "created", createdAt: new Date(0) };+const currentUsage = {+ requests: 2,+ models: [{ label: "Current import", provider: "openai-compatible", model: "current-model", providerId: "current" }],+};+const historicalUsage = {+ requests: 1,+ models: [+ { label: "Original import", provider: "openai-compatible", model: "original-model", providerId: "original" },+ ],+};const { HistoryPanel } = load("features/history/history.tsx", {"@lingui/core/macro": { ph: (named) => Object.values(named)[0], t: tag },"@lingui/react/macro": { useLingui: () => ({ t: tag, i18n: { number: i18n.number.bind(i18n), locale: "en-US" } }) },- "@tanstack/react-query": { useQuery: () => ({ data: [version] }) },+ "@tanstack/react-query": {+ useQuery: (options) => ({+ data: options.queryKey?.[0] === "version" ? { ...version, data: {}, aiUsage: historicalUsage } : [version],+ }),+ },"expo-image": { Image: "Image" },"expo-router": { useLocalSearchParams: () => ({ version: version.id }) },- "@/api/client": { client: {}, orpc: { resume: { listVersions: { queryOptions: () => ({}) } } } },+ "@/api/client": {+ client: {},+ orpc: {+ resume: {+ listVersions: { queryOptions: () => ({}) },+ getVersion: { queryOptions: () => ({ queryKey: ["version"] }) },+ },+ },+ },"@/draft": { getDraftScope: async () => "fixture", useResumeStore: {} },"@/features/documents/queries": { useDocumentOperations: () => ({ busy: false }) },+ "@/features/ai/usage": { AiResultUsage: "AiResultUsage" },"@/features/share/document": { flushResume: async () => {} },"@/preview/usePreview": { usePreview: () => ({ result: null }) },});const history = () => {cursor = 0;- return HistoryPanel({ resume: { id: "fictional", isLocked: false }, offline: false });+ return HistoryPanel({+ resume: { id: "fictional", isLocked: false, aiOperationIds: ["current-operation"], aiUsage: currentUsage },+ offline: false,+ });};let panel = history();for (const width of [650, 380, 650]) {@@ -338,6 +364,17 @@ for (const width of [650, 380, 650]) {panel = history();assert.equal(panel.props.style.flexDirection, width >= 540 ? "row-reverse" : "column");}+const historicalPage = nodes(panel).find((node) => typeof node.type === "function" && node.type.name === "VersionPage");+assert.ok(historicalPage);+nodes(panel)+ .find((node) => node.props.title === "Now")+ .props.onPress();+panel = history();+assert.deepEqual(nodes(panel).find((node) => node.type === "AiResultUsage").props.usage, currentUsage);+hooks.length = 0;+cursor = 0;+const historicalTree = historicalPage.type(historicalPage.props);+assert.deepEqual(nodes(historicalTree).find((node) => node.type === "AiResultUsage").props.usage, historicalUsage);// Large text must reflow chrome without taking scrolling content or row titles out of reach.const render = (component, props = {}) => {diff --git a/apps/mobile/src/draft/adapters.ts b/apps/mobile/src/draft/adapters.tsindex 22812f76c..816caab0d 100644--- a/apps/mobile/src/draft/adapters.ts+++ b/apps/mobile/src/draft/adapters.ts@@ -108,7 +108,12 @@ export const resumeAdapter: DraftAdapter<ResumeDocument, ResumeDocument["data"]>}),copy: async (document, copyId, remember, scope) => {const name = t`${document.name} (mine)`.slice(0, 100);- const id = copyId ?? (await client.resume.import({ data: document.data }, { context: { scope } }));+ const id =+ copyId ??+ (await client.resume.import(+ { data: document.data, ...(document.aiOperationIds ? { aiOperationIds: document.aiOperationIds } : {}) },+ { context: { scope } },+ ));remember(id);await client.resume.update({ id, name, tags: document.tags, data: document.data }, { context: { scope } });},diff --git a/apps/mobile/src/features/documents/import-file.ts b/apps/mobile/src/features/documents/import-file.tsindex cb126606b..d7386abf4 100644--- a/apps/mobile/src/features/documents/import-file.ts+++ b/apps/mobile/src/features/documents/import-file.ts@@ -27,6 +27,7 @@ export type ImportedDocument = { id: string; type: "resume" | "letter" };export type ImportToReview = {type: "review";data: ResumeData;+ aiOperationIds?: string[];review: ImportReview;/** The selecting account/server still owns this unsaved review when Create is pressed. */scope: string;@@ -53,7 +54,10 @@ export async function createReviewedResume(pending: ImportToReview, keepLeftoverkeepLeftovers && pending.review.notImported.length > 0? withLeftoverSection(pending.data, pending.review.notImported, t`More from your file`): pending.data;- const id = await client.resume.import({ data }, { signal, context: { scope } });+ const id = await client.resume.import(+ { data, ...(pending.aiOperationIds ? { aiOperationIds: pending.aiOperationIds } : {}) },+ { signal, context: { scope } },+ );if (getAccountScope() !== scope) throw new SessionChangedError();return { id, type: "resume" as const };}@@ -151,9 +155,9 @@ export async function importDocument(if (format === "DOCX" || (format === "PDF" && aiPdf)) {if (!aiAvailable)throw new ImportError(t`Reading this file with AI needs a tested AI provider. Set one up, then retry.`);- const input = { file: { name: asset.name, data: await file.base64() } };+ const input = { file: { name: asset.name, data: await file.base64() }, includeProvenance: true };assertCurrent();- const data =+ const { aiOperationIds, ...data } =format === "DOCX"? await client.ai.parseDocx({ ...input, mediaType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document" },@@ -179,6 +183,7 @@ export async function importDocument(return {type: "review",scope,+ aiOperationIds: aiOperationIds ?? [],data: reconciled,review: reviewImport(reconciled, compared ? source?.lines : undefined),compared,diff --git a/apps/mobile/src/features/history/history.tsx b/apps/mobile/src/features/history/history.tsxindex 4b3372ab7..38de99a66 100644--- a/apps/mobile/src/features/history/history.tsx+++ b/apps/mobile/src/features/history/history.tsx@@ -10,6 +10,7 @@ import { useState } from "react";import { ScrollView, View } from "react-native";import { client, orpc } from "@/api/client";import { getDraftScope, useResumeStore } from "@/draft";+import { AiResultUsage } from "@/features/ai/usage";import { useDocumentOperations } from "@/features/documents/queries";import { flushResume } from "@/features/share/document";import { usePreview } from "@/preview/usePreview";@@ -158,6 +159,7 @@ export function HistoryPanel({ resume, offline }: HistoryProps) {{operations.error && <Banner tone="danger" message={operations.error} />}{!selected && (<>+ {(resume.aiOperationIds?.length ?? 0) > 0 && <AiResultUsage usage={resume.aiUsage} />}<TextFieldlabel={t`Name this version`}placeholder={t`For example, Sent to Lumen`}@@ -296,6 +298,7 @@ function VersionPage({ resumeId, versionId, offline }: VersionPageProps) {style={{ flex: 1 }}contentContainerStyle={{ padding: space.s4, gap: space.s3, alignItems: "center" }}>+ {version.data && <AiResultUsage usage={version.data.aiUsage} />}{version.isError || preview.error ? (<Bannertone="danger"diff --git a/apps/web/src/features/documents/new-document-dialog-provider.test.tsx b/apps/web/src/features/documents/new-document-dialog-provider.test.tsxindex c78040e3d..9bddaa675 100644--- a/apps/web/src/features/documents/new-document-dialog-provider.test.tsx+++ b/apps/web/src/features/documents/new-document-dialog-provider.test.tsx@@ -53,10 +53,12 @@ vi.mock("@/libs/orpc/client", () => ({}));import { NewDocumentDialog } from "./new-document-dialog";+import { setAccountScope, invalidateAccountScope } from "@/libs/auth/account-scope";let queryClient: QueryClient;beforeEach(() => {vi.clearAllMocks();+ setAccountScope("import-owner");i18n.loadAndActivate({ locale: "en-US", messages: {} });queryClient = new QueryClient({ defaultOptions: { queries: { retry: false } } });api.listDocuments.mockResolvedValue([]);@@ -102,13 +104,17 @@ it("imports a PDF through the local text reader when AI connection lookup fails"await screen.findByRole("heading", { name: "Imported" });expect(api.providers).toHaveBeenCalled();expect(api.readPdfResume).toHaveBeenCalledWith(file);- expect(api.importResume).toHaveBeenCalledWith({- data: expect.objectContaining({- basics: expect.objectContaining({ name: "Alex Morgan" }),- // The unplaced line is kept, as the user chose by default.- customSections: [expect.objectContaining({ title: "More from your file" })],- }),- });+ expect(api.importResume).toHaveBeenCalledWith(+ {+ aiOperationIds: [],+ data: expect.objectContaining({+ basics: expect.objectContaining({ name: "Alex Morgan" }),+ // The unplaced line is kept, as the user chose by default.+ customSections: [expect.objectContaining({ title: "More from your file" })],+ }),+ },+ expect.objectContaining({ context: { accountId: "import-owner" } }),+ );expect(api.parsePdf).not.toHaveBeenCalled();expect(api.parseDocx).not.toHaveBeenCalled();expect(screen.getByRole("button", { name: "Open in editor" })).toBeEnabled();@@ -138,6 +144,62 @@ it.each([false, true])("describes partial PDF comparison honestly when readableexpect(api.importResume).not.toHaveBeenCalled();});+it.each([+ "with sources",+ "older server",+ "changed before reading",+ "changed during parse",+ "changed before Create",+ "same-account new session",+])("keeps AI import review and its request sources in the selecting account: %s", async (scenario) => {+ api.providers.mockResolvedValue([+ { id: "fictional-provider", label: "Fictional provider", model: "fixture", enabled: true, testStatus: "success" },+ ]);+ api.parsePdf.mockImplementation(async () => {+ if (scenario === "changed during parse") setAccountScope("different-owner");+ return {+ ...parseResumeText("Alex Morgan\[email protected]"),+ ...(scenario !== "older server" ? { aiOperationIds: ["actual-operation"] } : {}),+ };+ });+ mount(new File(["%PDF-test"], "resume.pdf", { type: "application/pdf" }));+ if (scenario === "changed before reading") {+ const read = await screen.findByRole("button", { name: /^Read with AI$/ });+ setAccountScope("different-owner");+ await act(async () => fireEvent.click(read));+ expect(api.parsePdf).not.toHaveBeenCalled();+ expect(api.importResume).not.toHaveBeenCalled();+ return;+ }+ fireEvent.click(await screen.findByRole("button", { name: /^Read with AI$/ }));+ if (scenario === "changed during parse") {+ await vi.waitFor(() => expect(api.parsePdf).toHaveResolved());+ expect(screen.queryByRole("heading", { name: "Check what was found" })).toBeNull();+ expect(api.importResume).not.toHaveBeenCalled();+ return;+ }+ await screen.findByRole("heading", { name: "Check what was found" });+ expect(api.importResume).not.toHaveBeenCalled();+ if (scenario === "changed before Create") setAccountScope("different-owner");+ if (scenario === "same-account new session") {+ invalidateAccountScope();+ setAccountScope("import-owner");+ }+ fireEvent.click(screen.getByRole("button", { name: "Create resume" }));+ if (scenario.includes("Create") || scenario === "same-account new session") {+ expect(api.importResume).not.toHaveBeenCalled();+ } else {+ await screen.findByRole("heading", { name: "Imported" });+ const saved = api.importResume.mock.calls[0];+ if (!saved) throw new Error("Missing reviewed import");+ const [input, options] = saved;+ expect(input.aiOperationIds).toEqual(scenario === "older server" ? [] : ["actual-operation"]);+ expect(input.data).not.toHaveProperty("aiOperationIds");+ expect(options.context.accountId).toBe("import-owner");+ }+ expect(api.parsePdf).toHaveBeenCalledTimes(1);+});+it("explains Word prerequisites before any upload and retains the file for in-place setup", async () => {mount(new File([new Uint8Array([0x50, 0x4b, 0x03, 0x04])], "resume.docx"));await screen.findByRole("heading", { name: "Choose how to read this file" });diff --git a/apps/web/src/features/documents/new-document-dialog.tsx b/apps/web/src/features/documents/new-document-dialog.tsxindex fefed4233..66aa19e62 100644--- a/apps/web/src/features/documents/new-document-dialog.tsx+++ b/apps/web/src/features/documents/new-document-dialog.tsx@@ -39,6 +39,7 @@ import {} from "@/features/resume/import/read-file";import { AiProviderLoadState } from "@/features/settings/integrations/ai-provider-load-state";import { useHasUsableAiProvider } from "@/features/settings/integrations/hooks/use-has-usable-ai-provider";+import { getAccountGeneration, getAccountId } from "@/libs/auth/account-scope";import { getOrpcErrorMessage, toastError } from "@/libs/error-message";import { formatRelativeTime } from "@/libs/locale";import { ENTER_CLASS, POP_CLASS } from "@/libs/motion";@@ -68,6 +69,8 @@ type Step =name: "review";file: File;data: ResumeData;+ aiOperationIds: string[];+ owner: { accountId: string; generation: number };review: ImportReview;/** How much of the file's own text the import was compared with. */comparison: "full" | "partial" | "none";@@ -101,6 +104,7 @@ function useResumeImport(const providerState = useHasUsableAiProvider();const { hasUsableProvider } = providerState;const run = useRef(0);+ const account = useRef({ id: getAccountId(), generation: getAccountGeneration() });const controller = useRef<AbortController | null>(null);useEffect(() => () => {@@ -112,11 +116,18 @@ function useResumeImport(const refreshDocuments = () => queryClient.invalidateQueries({ queryKey: orpc.documents.key() });const importFile = async (file: File, mode?: "local" | "ai") => {+ const accountId = getAccountId();+ if (!accountId || account.current.id !== accountId || account.current.generation !== getAccountGeneration()) return;+ const owner = { accountId, generation: getAccountGeneration() };controller.current?.abort();controller.current = new AbortController();const signal = controller.current.signal;const attempt = ++run.current;- const current = () => run.current === attempt;+ const current = () =>+ run.current === attempt &&+ !signal.aborted &&+ getAccountId() === owner.accountId &&+ getAccountGeneration() === owner.generation;const advance = (stage: number, note: string) => {const index = stage - 1;setStep((previous) =>@@ -136,7 +147,9 @@ function useResumeImport(}if (kind === "cover-letter-json") {- const letter = await client.coverLetters.import({ document: JSON.parse(await file.text()) });+ const document = JSON.parse(await file.text());+ if (!current()) return;+ const letter = await client.coverLetters.import({ document }, { signal, context: { accountId } });if (!current()) return;markNew(letter.id);void refreshDocuments();@@ -158,9 +171,14 @@ function useResumeImport(}}if (!current()) return;+ let aiOperationIds: string[] = [];const resume = await readResumeFile(file, kind, {aiAvailable,signal,+ accountId,+ onProvenance: (ids) => {+ aiOperationIds = ids;+ },onRead: (note) => advance(1, note),});if (!current()) return;@@ -175,12 +193,14 @@ function useResumeImport(name: "review",file,data,+ aiOperationIds,+ owner,review: reviewImport(data, source?.lines),comparison: !source?.lines.length ? "none" : source.partial ? "partial" : "full",});return;}- await create(file, resume, attempt);+ await create(file, resume, owner, aiOperationIds, attempt);} catch (error) {if (current()) fail(file, error);}@@ -201,8 +221,21 @@ function useResumeImport(setStep({ name: "failed", file, message });};- const create = async (file: File, resume: ResumeData, attempt = ++run.current) => {- const current = () => run.current === attempt;+ const create = async (+ file: File,+ resume: ResumeData,+ owner: { accountId: string; generation: number },+ aiOperationIds: string[],+ attempt = ++run.current,+ ) => {+ const signal = controller.current?.signal;+ const current = () =>+ run.current === attempt &&+ !signal?.aborted &&+ getAccountId() === owner.accountId &&+ getAccountGeneration() === owner.generation;+ if (!current()) return;+ const options = { ...(signal ? { signal } : {}), context: { accountId: owner.accountId } };const summary = summarizeImport(resume);setStep({name: "importing",@@ -211,9 +244,10 @@ function useResumeImport(notes: [t`file read`, plural(summary.sections, { one: "# section", other: "# sections" })],});try {- const resumeId = await client.resume.import({ data: resume });+ const resumeId = await client.resume.import({ data: resume, aiOperationIds }, options);if (!current()) return;- if (applicationId) await client.documents.linkApplication({ type: "resume", id: resumeId, applicationId });+ if (applicationId)+ await client.documents.linkApplication({ type: "resume", id: resumeId, applicationId }, options);if (!current()) return;markNew(resumeId);void refreshDocuments();@@ -228,6 +262,8 @@ function useResumeImport(create(step.file,keepLeftovers ? withLeftoverSection(step.data, step.review.notImported, t`More from your file`) : step.data,+ step.owner,+ step.aiOperationIds,);const cancel = () => {diff --git a/apps/web/src/features/resume/builder/draft.ts b/apps/web/src/features/resume/builder/draft.tsindex efca3ddd2..012dc9759 100644--- a/apps/web/src/features/resume/builder/draft.ts+++ b/apps/web/src/features/resume/builder/draft.ts@@ -1,4 +1,5 @@import type { Proposal, ProposalApplications, ProposalSnapshot } from "@reactive-resume/resume/proposals";+import type { AiUsageSummary } from "@reactive-resume/schema/ai-usage";import type { ResumeData } from "@reactive-resume/schema/resume/data";import type { QueryClient, QueryKey } from "@tanstack/react-query";import type { WritableDraft } from "immer";@@ -29,6 +30,8 @@ export type Resume = {slug: string;tags: string[];data: ResumeData;+ aiOperationIds?: string[] | undefined;+ aiUsage?: AiUsageSummary | null | undefined;isLocked: boolean;createdAt: Date;updatedAt: Date;@@ -714,6 +717,8 @@ export const useResumeStore = create<ResumeStore>()(state.resume.showInSearchEngines = resume.showInSearchEngines;state.resume.hideContactDetails = resume.hideContactDetails;state.resume.isPrimary = resume.isPrimary;+ if (resume.aiOperationIds !== undefined) state.resume.aiOperationIds = resume.aiOperationIds;+ if (resume.aiUsage !== undefined) state.resume.aiUsage = resume.aiUsage;});},@@ -794,7 +799,10 @@ export const useResumeStore = create<ResumeStore>()(const options = { signal: runtime.abortController.signal };try {const name = t`${current.name} (mine)`.slice(0, 100);- runtime.copyId ??= await orpc.resume.import.call({ data: current.data }, options);+ runtime.copyId ??= await orpc.resume.import.call(+ { data: current.data, ...(current.aiOperationIds ? { aiOperationIds: current.aiOperationIds } : {}) },+ options,+ );await orpc.resume.update.call({ id: runtime.copyId, name, tags: current.tags, data: current.data }, options);const remote = await orpc.resume.getById.call({ id: current.id }, options);if (runtime.abortController.signal.aborted) return;diff --git a/apps/web/src/features/resume/import/read-file.ts b/apps/web/src/features/resume/import/read-file.tsindex 43e35875e..7d6dfbb2d 100644--- a/apps/web/src/features/resume/import/read-file.ts+++ b/apps/web/src/features/resume/import/read-file.ts@@ -139,7 +139,13 @@ function fileToBase64(file: File): Promise<string> {export async function readResumeFile(file: File,kind: Exclude<ImportKind, "cover-letter-json">,- options: { aiAvailable: boolean; signal?: AbortSignal; onRead?: (note: string) => void },+ options: {+ aiAvailable: boolean;+ signal?: AbortSignal;+ accountId?: string;+ onRead?: (note: string) => void;+ onProvenance?: (aiOperationIds: string[]) => void;+ },): Promise<ResumeData> {options.signal?.throwIfAborted();if (kind === "reactive-resume-json" || kind === "reactive-resume-v4-json" || kind === "json-resume-json") {@@ -167,19 +173,29 @@ export async function readResumeFile(file.type === "application/msword"? ("application/msword" as const): ("application/vnd.openxmlformats-officedocument.wordprocessingml.document" as const);- return client.ai.parseDocx(- { mediaType, file: { name: file.name, data: base64 } },- options.signal ? { signal: options.signal } : {},+ const { aiOperationIds, ...data } = await client.ai.parseDocx(+ { mediaType, file: { name: file.name, data: base64 }, includeProvenance: true },+ {+ ...(options.signal ? { signal: options.signal } : {}),+ context: options.accountId ? { accountId: options.accountId } : {},+ },);+ options.onProvenance?.(aiOperationIds ?? []);+ return data;}if (options.aiAvailable) {const base64 = await fileToBase64(file);options.onRead?.(t`file read`);- return client.ai.parsePdf(- { file: { name: file.name, data: base64 } },- options.signal ? { signal: options.signal } : {},+ const { aiOperationIds, ...data } = await client.ai.parsePdf(+ { file: { name: file.name, data: base64 }, includeProvenance: true },+ {+ ...(options.signal ? { signal: options.signal } : {}),+ context: options.accountId ? { accountId: options.accountId } : {},+ },);+ options.onProvenance?.(aiOperationIds ?? []);+ return data;}const { readPdfResume } = await import("./pdf-text");diff --git a/apps/web/src/features/resume/share/history-tab.test.tsx b/apps/web/src/features/resume/share/history-tab.test.tsxindex 1c2e7499f..ba85faf75 100644--- a/apps/web/src/features/resume/share/history-tab.test.tsx+++ b/apps/web/src/features/resume/share/history-tab.test.tsx@@ -25,6 +25,7 @@ vi.mock("@reactive-resume/ui/components/toast", () => ({ toast: { add: mocks.toavi.mock("@/libs/orpc/client", () => ({orpc: {resume: {+ getVersion: { queryOptions: () => ({ queryKey: ["version"], queryFn: async () => ({ id: "version" }) }) },listVersions: {queryKey: () => ["versions"],queryOptions: () => ({diff --git a/apps/web/src/features/resume/share/history-tab.tsx b/apps/web/src/features/resume/share/history-tab.tsxindex 3b6396bc4..86646617c 100644--- a/apps/web/src/features/resume/share/history-tab.tsx+++ b/apps/web/src/features/resume/share/history-tab.tsx@@ -18,6 +18,7 @@ import { Input } from "@reactive-resume/ui/components/input";import { toast } from "@reactive-resume/ui/components/toast";import { cn } from "@reactive-resume/utils/style";import { formatVersionMoment, formatVersionTime, getVersionDetail, getVersionTitle } from "./format";+import { AiResultUsage } from "@/features/ai/usage";import {savePendingChanges,useCurrentResume,@@ -52,7 +53,23 @@ export type HistorySource = {/** History for the resume in the editor. */export function HistoryTab() {- return <HistoryTimeline source={useResumeHistory()} />;+ const resume = useCurrentResume();+ const versionId = useEditorStore((state) => state.historyVersionId);+ const version = useQuery({+ ...orpc.resume.getVersion.queryOptions({ input: { resumeId: resume.id, versionId: versionId ?? "" } }),+ enabled: versionId !== null,+ });+ const selected = versionId && version.data?.id === versionId ? version.data : null;+ return (+ <>+ {selected ? (+ <AiResultUsage usage={selected.aiUsage} />+ ) : !versionId && (resume.aiOperationIds?.length ?? 0) > 0 ? (+ <AiResultUsage usage={resume.aiUsage} />+ ) : null}+ <HistoryTimeline source={useResumeHistory()} />+ </>+ );}function useResumeHistory(): HistorySource {diff --git a/docs/guides/importing-resumes.mdx b/docs/guides/importing-resumes.mdxindex f3c9189c0..b8b013e96 100644--- a/docs/guides/importing-resumes.mdx+++ b/docs/guides/importing-resumes.mdx@@ -83,6 +83,17 @@ A cover letter exported from Reactive Resume as JSON imports as a letter, not a## Review what came in+After an AI PDF or Word import, **History** on web and mobile shows the original connection, provider, model and request attempts for the saved resume and its versions. Creating the reviewed resume, copying it or restoring a version makes no additional AI request. Renaming or removing the connection doesn't rewrite those saved sources. An older server may return the resume without source history; the app doesn't repeat the AI reading to recover it.++These private sources stay with owned copies and **Export everything**, outside the resume's portable JSON, public page and employer downloads. Importing a portable JSON file doesn't recover request history from another account or server.++<Frame caption="Web History for a reviewed fictional Word import">+ <img+ src="/images/guides/importing-resumes/ai-import-history.png"+ alt="History showing an Imported resume version with one AI request attempt and the original fictional provider and import-fast model after the connection was removed"+ />+</Frame>+When you open an imported resume from the dialog, the **Write** panel starts with a note naming the file you imported and counting its sections and entries.<Frame caption="Review the imported resume in the editor">diff --git a/docs/guides/undoing-changes-and-version-history.mdx b/docs/guides/undoing-changes-and-version-history.mdxindex 928845c51..95f33de95 100644--- a/docs/guides/undoing-changes-and-version-history.mdx+++ b/docs/guides/undoing-changes-and-version-history.mdx@@ -133,6 +133,8 @@ Restoring never throws anything away. Before it replaces your resume, Reactive RA version holds the whole resume: content, design, custom styles and private notes. Its public link settings aren'tpart of it.+For AI PDF and Word imports, **History** also shows the saved version's original provider, model and request attempts on web and mobile. Copies and restore points keep the sources paired with that content. Older versions without recorded sources show that request history is unavailable; that doesn't mean no AI was used. Restoring or copying never runs the model again. Request sources remain private and are included in **Export everything**, not public resumes or employer downloads.+<Accordion title="Browser recovery copies">If saving a resume fails, a recovery copy may stay in this browser for up to seven days. Successful sign-out oraccount deletion clears these copies, saved contact snapshots and career drafts from browser storage. Save or exportdiff --git a/docs/guides/using-ai.mdx b/docs/guides/using-ai.mdxindex f8b92dd4f..4b128b2f1 100644--- a/docs/guides/using-ai.mdx+++ b/docs/guides/using-ai.mdx@@ -192,6 +192,8 @@ Failed and cancelled transport attempts remain in history. These totals are notSaved workspace **Library** results and **Check → Writing** reviews show their recorded attempt count, connection label, provider type and requested model. Accepted letter body drafts also show their sources in the letter editor and History. Earlier draft selection, revisions and recovery preserve the corresponding references. Reused AI answer sources keep their recorded lineage; saving or reusing them does not make another provider request. Older results say **AI request history unavailable for this result.** instead of guessing a count.+Reviewed AI PDF and Word imports retain their sources in resume **History** on web and mobile, including owned copies and saved versions. Sources stay out of portable resume JSON and employer downloads. Older-server import results may have no recorded source; reading them again is not automatic. See [Importing a resume](/guides/importing-resumes#review-what-came-in).+Renaming, changing or deleting a connection does not rewrite its historical labels or models. Usage remains readable without an active AI provider. Account export includes usage history, and deleting the account removes it. An older server without reporting shows an update/retry notice.## Which provider is useddiff --git a/docs/images/guides/importing-resumes/ai-import-history.png b/docs/images/guides/importing-resumes/ai-import-history.pngnew file mode 100644index 000000000..233fc99bfBinary files /dev/null and b/docs/images/guides/importing-resumes/ai-import-history.png differdiff --git a/docs/spec.json b/docs/spec.jsonindex 3045b00ca..64aaedddc 100644--- a/docs/spec.json+++ b/docs/spec.json@@ -1988,6 +1988,9 @@"name","data"]+ },+ "includeProvenance": {+ "type": "boolean"}},"required": [@@ -6334,6 +6337,15 @@"notes"],"description": "Metadata for the resume, such as template, layout, typography, etc. This section describes the overall design and appearance of the resume."+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }}},"required": [@@ -6557,6 +6569,9 @@"data"]},+ "includeProvenance": {+ "type": "boolean"+ },"mediaType": {"enum": ["application/msword",@@ -10910,6 +10925,15 @@"notes"],"description": "Metadata for the resume, such as template, layout, typography, etc. This section describes the overall design and appearance of the resume."+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }}},"required": [@@ -43847,6 +43871,62 @@"format": "date-time","x-native-type": "date","description": "The date and time the resume was last updated."+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [@@ -44656,6 +44736,12 @@},"additionalProperties": {}},+ "aiOperationIds": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },"kind": {"enum": ["created",@@ -44699,6 +44785,7 @@"id","resumeId","data",+ "aiOperationIds","kind","name","sessionId",@@ -81020,6 +81107,62 @@},"hasPassword": {"type": "boolean"+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [@@ -93366,6 +93509,62 @@"hasPassword": {"type": "boolean"},+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]+ },"applicationId": {"anyOf": [{@@ -93517,6 +93716,15 @@"type": "boolean","description": "Whether this is the account's primary resume, opened by its short link and custom domain."},+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },"expectedUpdatedAt": {"type": "string","format": "date-time",@@ -97973,6 +98181,62 @@},"hasPassword": {"type": "boolean"+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [@@ -102890,6 +103154,62 @@},"hasPassword": {"type": "boolean"+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [@@ -112585,6 +112905,62 @@},"hasPassword": {"type": "boolean"+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [@@ -117188,6 +117564,62 @@},"hasPassword": {"type": "boolean"+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [@@ -121794,6 +122226,62 @@},"hasPassword": {"type": "boolean"+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [@@ -126450,6 +126938,62 @@},"hasPassword": {"type": "boolean"+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [@@ -131798,6 +132342,62 @@"metadata"],"additionalProperties": {}+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [@@ -136559,6 +137159,62 @@},"hasPassword": {"type": "boolean"+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [@@ -144089,6 +144745,15 @@"type": "boolean","description": "Whether this is the account's primary resume, opened by its short link and custom domain."},+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },"expectedUpdatedAt": {"type": "string","format": "date-time",@@ -148545,6 +149210,62 @@},"hasPassword": {"type": "boolean"+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [@@ -153801,6 +154522,62 @@},"hasPassword": {"type": "boolean"+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [@@ -163307,6 +164084,62 @@},"hasPassword": {"type": "boolean"+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }+ },+ "aiUsage": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "requests": {+ "type": "integer",+ "minimum": 0,+ "maximum": 9007199254740991+ },+ "models": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "providerId": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "model": {+ "type": "string"+ }+ },+ "required": [+ "providerId",+ "label",+ "provider",+ "model"+ ]+ }+ }+ },+ "required": [+ "requests",+ "models"+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [@@ -167513,6 +168346,9 @@"name","data"]+ },+ "includeProvenance": {+ "type": "boolean"}},"required": [@@ -171859,6 +172695,15 @@"notes"],"description": "Metadata for the resume, such as template, layout, typography, etc. This section describes the overall design and appearance of the resume."+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }}},"required": [@@ -172081,6 +172926,9 @@"data"]},+ "includeProvenance": {+ "type": "boolean"+ },"mediaType": {"enum": ["application/msword",@@ -176434,6 +177282,15 @@"notes"],"description": "Metadata for the resume, such as template, layout, typography, etc. This section describes the overall design and appearance of the resume."+ },+ "aiOperationIds": {+ "type": "array",+ "maxItems": 1000,+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 64+ }}},"required": [diff --git a/migrations/20261103134258_red_korg/migration.sql b/migrations/20261103134258_red_korg/migration.sqlnew file mode 100644index 000000000..920cd59bc--- /dev/null+++ b/migrations/20261103134258_red_korg/migration.sql@@ -0,0 +1,2 @@+ALTER TABLE "resume" ADD COLUMN "ai_operation_ids" text[] DEFAULT '{}'::text[] NOT NULL;--> statement-breakpoint+ALTER TABLE "resume_version" ADD COLUMN "ai_operation_ids" text[] DEFAULT '{}'::text[] NOT NULL;\ No newline at end of filediff --git a/migrations/20261103134258_red_korg/snapshot.json b/migrations/20261103134258_red_korg/snapshot.jsonnew file mode 100644index 000000000..c32d332ba--- /dev/null+++ b/migrations/20261103134258_red_korg/snapshot.json@@ -0,0 +1,12553 @@+{+ "version": "8",+ "dialect": "postgres",+ "id": "ee364bd5-f246-42dc-8018-51c0242ed531",+ "prevIds": [+ "c3022588-c594-46c4-a61a-45636fdaf86d"+ ],+ "ddl": [+ {+ "isRlsEnabled": false,+ "name": "agent_actions",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "agent_attachments",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "agent_messages",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "agent_threads",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "ai_providers",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "ai_request",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "application",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "application_lane",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "application_pipeline",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "career_answer",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "career_artifact",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "career_fact",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "career_job",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "career_notification",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "career_opportunity",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "career_profile",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "career_schedule",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "career_story",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "career_transcript",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "career_workspace",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "account",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "apikey",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "jwks",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_access_token",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_client",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_client_assertion",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_client_resource",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_consent",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_refresh_token",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_resource",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "passkey",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "released_username",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "session",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "two_factor",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "user",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "verification",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "cover_letter",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "cover_letter_version",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "custom_domain",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "resume",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "resume_slug_redirect",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "resume_statistics",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "resume_statistics_daily",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "resume_version",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "resume_writing_review",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "storage_cleanup_job",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "web_access_credentials",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "ai_content_report",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "application_profile",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "create_request",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "feedback_comment",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "feedback_event",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "feedback_link",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "thread_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "message_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "kind",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'applied'",+ "generated": null,+ "identity": null,+ "name": "status",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "title",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "summary",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "operations",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "snapshot_data",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "base_updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "applied_updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reverted_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "revert_message",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "thread_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "message_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "storage_key",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "filename",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "media_type",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "size",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "thread_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "role",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'completed'",+ "generated": null,+ "identity": null,+ "name": "status",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "sequence",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ui_message",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "error",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ai_provider_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "source_resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "working_resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "cover_letter_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'document'",+ "generated": null,+ "identity": null,+ "name": "scope",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "title",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "edits_proposed",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "edits_accepted",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'active'",+ "generated": null,+ "identity": null,+ "name": "status",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "review_patches",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "active_run_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "active_stream_id",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "active_run_started_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "last_message_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "archived_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "deleted_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "label",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "provider",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "model",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "fast_model",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "capable_model",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "base_url",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "encrypted_api_key",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "api_key_salt",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "api_key_hash",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "api_key_preview",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'untested'",+ "generated": null,+ "identity": null,+ "name": "test_status",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "test_error",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "test_error_kind",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "user_disabled",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_tested_at",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_used_at",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "enabled",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "is_default",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_request"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_request"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "operation_id",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_request"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "action",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_request"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "provider_id",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_request"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "label",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_request"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "provider",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_request"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "model",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_request"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_request"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "company",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "role",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "location",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "salary",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'saved'",+ "generated": null,+ "identity": null,+ "name": "status",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "lane_id",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "closed_reason",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "cover_letter_id",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "sent_resume_version_id",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "smallint",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "sent_check_score",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "sent_cover_letter_version_id",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "source",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": "'{}'",+ "generated": null,+ "identity": null,+ "name": "tags",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "source_url",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "job_description",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "posting_source",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'[]'",+ "generated": null,+ "identity": null,+ "name": "requirements",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "match_score",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ai_metadata",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "notes",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_file_url",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_file_name",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "cover_letter_url",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "cover_letter_name",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "follow_up_at",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "follow_up_date_only",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "follow_up_note",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'[]'",+ "generated": null,+ "identity": null,+ "name": "contacts",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'[]'",+ "generated": null,+ "identity": null,+ "name": "activity",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "trashed_at",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "applied_at",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "submitted_at",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "application"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "application_lane"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "application_lane"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "category",+ "entityType": "columns",+ "schema": "public",+ "table": "application_lane"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "label",+ "entityType": "columns",+ "schema": "public",+ "table": "application_lane"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "color",+ "entityType": "columns",+ "schema": "public",+ "table": "application_lane"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "position",+ "entityType": "columns",+ "schema": "public",+ "table": "application_lane"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "system_key",+ "entityType": "columns",+ "schema": "public",+ "table": "application_lane"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "closed_reason",+ "entityType": "columns",+ "schema": "public",+ "table": "application_lane"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "retired_at",+ "entityType": "columns",+ "schema": "public",+ "table": "application_lane"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "application_pipeline"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "revision",+ "entityType": "columns",+ "schema": "public",+ "table": "application_pipeline"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "question",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "answer",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": "'{}'",+ "generated": null,+ "identity": null,+ "name": "ai_operation_ids",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "source",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scope",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "employer",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "source_application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "fact_ids",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "story_ids",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "evidence",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reviewed_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "1",+ "generated": null,+ "identity": null,+ "name": "revision",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "duplicate_key",+ "entityType": "columns",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "interview_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "title",+ "entityType": "columns",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "data",+ "entityType": "columns",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "evidence",+ "entityType": "columns",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "job_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "input_version",+ "entityType": "columns",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ai_operation_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "text",+ "entityType": "columns",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "category",+ "entityType": "columns",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "source",+ "entityType": "columns",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "source_key",+ "entityType": "columns",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'active'",+ "generated": null,+ "identity": null,+ "name": "status",+ "entityType": "columns",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'[]'",+ "generated": null,+ "identity": null,+ "name": "revisions",+ "entityType": "columns",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_job"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_job"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_job"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_job"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "schedule_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_job"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "due_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_job"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'queued'",+ "generated": null,+ "identity": null,+ "name": "status",+ "entityType": "columns",+ "schema": "public",+ "table": "career_job"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "attempts",+ "entityType": "columns",+ "schema": "public",+ "table": "career_job"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "lease",+ "entityType": "columns",+ "schema": "public",+ "table": "career_job"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "lease_until",+ "entityType": "columns",+ "schema": "public",+ "table": "career_job"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "error",+ "entityType": "columns",+ "schema": "public",+ "table": "career_job"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "key",+ "entityType": "columns",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "notice",+ "entityType": "columns",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "url",+ "entityType": "columns",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "read_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "emailed_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "email_attempted_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "url",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "''",+ "generated": null,+ "identity": null,+ "name": "role",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "''",+ "generated": null,+ "identity": null,+ "name": "company",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "''",+ "generated": null,+ "identity": null,+ "name": "location",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "snippet",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "discovery_source",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "''",+ "generated": null,+ "identity": null,+ "name": "description",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "first_seen_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "last_seen_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "dismissed_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "tracked_application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_profile"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "data",+ "entityType": "columns",+ "schema": "public",+ "table": "career_profile"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_profile"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "interview_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "kind",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "''",+ "generated": null,+ "identity": null,+ "name": "query",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "lead",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'en-US'",+ "generated": null,+ "identity": null,+ "name": "locale",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'UTC'",+ "generated": null,+ "identity": null,+ "name": "timezone",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "enabled",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "email",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "next_run_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_queued_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "interval_days",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ai_provider_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ai_provider_version",+ "entityType": "columns",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_story"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_story"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_story"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_story"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_story"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "data",+ "entityType": "columns",+ "schema": "public",+ "table": "career_story"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_transcript"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_transcript"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_transcript"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_transcript"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_transcript"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "original",+ "entityType": "columns",+ "schema": "public",+ "table": "career_transcript"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "edited",+ "entityType": "columns",+ "schema": "public",+ "table": "career_transcript"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "model",+ "entityType": "columns",+ "schema": "public",+ "table": "career_transcript"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ai_operation_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_transcript"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_workspace"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "career_workspace"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "data",+ "entityType": "columns",+ "schema": "public",+ "table": "career_workspace"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "submission_review",+ "entityType": "columns",+ "schema": "public",+ "table": "career_workspace"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "career_workspace"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "account_id",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'credential'",+ "generated": null,+ "identity": null,+ "name": "provider_id",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "issuer",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scope",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id_token",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "password",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "access_token",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refresh_token",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "access_token_expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refresh_token_expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "start",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "prefix",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "key",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'default'",+ "generated": null,+ "identity": null,+ "name": "config_id",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refill_interval",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refill_amount",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_refill_at",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "true",+ "generated": null,+ "identity": null,+ "name": "enabled",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "rate_limit_enabled",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "86400000",+ "generated": null,+ "identity": null,+ "name": "rate_limit_time_window",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "10",+ "generated": null,+ "identity": null,+ "name": "rate_limit_max",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "request_count",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "remaining",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_request",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "permissions",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "metadata",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "public_key",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "private_key",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "alg",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "crv",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "authorization_code_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resources",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "requested_user_info_claims",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "revoked",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "confirmation",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "token",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "session_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refresh_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_discovery_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": "'{}'",+ "generated": null,+ "identity": null,+ "name": "client_credentials_scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "backchannel_logout_uri",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "backchannel_logout_session_required",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "application_type",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "jwks",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "jwks_uri",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "dpop_bound_access_tokens",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_secret",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "disabled",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "skip_consent",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "enable_end_session",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "subject_type",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "uri",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "icon",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "contacts",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "tos",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "policy",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "software_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "software_version",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "software_statement",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "redirect_uris",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "post_logout_redirect_uris",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "token_endpoint_auth_method",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "grant_types",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "response_types",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "public",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "type",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "require_pkce",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "metadata",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client_assertion"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client_assertion"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client_resource"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client_resource"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resource_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client_resource"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "metadata",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client_resource"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client_resource"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resources",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "requested_user_info_claims",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "authorization_code_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resources",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "requested_user_info_claims",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "rotated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "rotation_replay_response",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "rotation_replay_expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "confirmation",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "token",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "session_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "revoked",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "auth_time",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "identifier",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "access_token_ttl",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refresh_token_ttl",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "signing_algorithm",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "signing_key_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "allowed_scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "custom_claims",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "dpop_bound_access_tokens_required",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "disabled",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "1",+ "generated": null,+ "identity": null,+ "name": "policy_version",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "metadata",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_resource"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "aaguid",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "public_key",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "credential_id",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "counter",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "device_type",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "backed_up",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "transports",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "username",+ "entityType": "columns",+ "schema": "public",+ "table": "released_username"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "released_username"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "released_at",+ "entityType": "columns",+ "schema": "public",+ "table": "released_username"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "token",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ip_address",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_agent",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "impersonated_by",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "secret",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "backup_codes",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "true",+ "generated": null,+ "identity": null,+ "name": "verified",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "failed_verification_count",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "locked_until",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "image",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "email",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "email_verified",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "username",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "display_username",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "two_factor_enabled",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'UTC'",+ "generated": null,+ "identity": null,+ "name": "timezone",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "locale",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_active_at",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "'user'",+ "generated": null,+ "identity": null,+ "name": "role",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "banned",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ban_reason",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "timestamp(6) with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ban_expires",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "is_anonymous",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "identifier",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "value",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "''",+ "generated": null,+ "identity": null,+ "name": "recipient",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "''",+ "generated": null,+ "identity": null,+ "name": "content",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": "'{}'",+ "generated": null,+ "identity": null,+ "name": "ai_operation_ids",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "greeting",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "sign_off",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "style",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'freeform'",+ "generated": null,+ "identity": null,+ "name": "layout",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "''",+ "generated": null,+ "identity": null,+ "name": "recipient_name",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "''",+ "generated": null,+ "identity": null,+ "name": "recipient_company",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "letter_date",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "sender_linked",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "design_linked",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "source_resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "source_application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": "'{}'",+ "generated": null,+ "identity": null,+ "name": "tags",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "is_locked",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "trashed_at",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "1",+ "generated": null,+ "identity": null,+ "name": "revision",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "edited_at",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "cover_letter_id",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter_version"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "data",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'auto'",+ "generated": null,+ "identity": null,+ "name": "kind",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "session_id",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter_version"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "cover_letter_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "custom_domain"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "hostname",+ "entityType": "columns",+ "schema": "public",+ "table": "custom_domain"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "verification_token",+ "entityType": "columns",+ "schema": "public",+ "table": "custom_domain"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "verified_at",+ "entityType": "columns",+ "schema": "public",+ "table": "custom_domain"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_checked_at",+ "entityType": "columns",+ "schema": "public",+ "table": "custom_domain"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "failing_since",+ "entityType": "columns",+ "schema": "public",+ "table": "custom_domain"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "custom_domain"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "slug",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": "'{}'",+ "generated": null,+ "identity": null,+ "name": "tags",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": "'{}'",+ "generated": null,+ "identity": null,+ "name": "ai_operation_ids",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "is_public",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "true",+ "generated": null,+ "identity": null,+ "name": "show_download_buttons",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "allow_word_download",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "show_in_search_engines",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "hide_contact_details",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "is_primary",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "is_locked",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "password",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "trashed_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "auto_name",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "auto_slug",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "data",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "edited_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_slug_redirect"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "slug",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_slug_redirect"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_slug_redirect"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_slug_redirect"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_slug_redirect"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_slug_redirect"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "views",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "downloads",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_viewed_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_downloaded_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "date",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "date",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "views",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "downloads",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "data",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": "'{}'",+ "generated": null,+ "identity": null,+ "name": "ai_operation_ids",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'auto'",+ "generated": null,+ "identity": null,+ "name": "kind",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "session_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_writing_review"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_writing_review"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "1",+ "generated": null,+ "identity": null,+ "name": "request_generation",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_writing_review"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "input_text",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_writing_review"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "passages",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_writing_review"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "review",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_writing_review"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ai_operation_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_writing_review"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "requested_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_writing_review"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reviewed_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_writing_review"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "storage_cleanup_job"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "owner_id",+ "entityType": "columns",+ "schema": "public",+ "table": "storage_cleanup_job"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "storage_key",+ "entityType": "columns",+ "schema": "public",+ "table": "storage_cleanup_job"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'pending'",+ "generated": null,+ "identity": null,+ "name": "status",+ "entityType": "columns",+ "schema": "public",+ "table": "storage_cleanup_job"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "attempts",+ "entityType": "columns",+ "schema": "public",+ "table": "storage_cleanup_job"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "claim_token",+ "entityType": "columns",+ "schema": "public",+ "table": "storage_cleanup_job"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "next_attempt_at",+ "entityType": "columns",+ "schema": "public",+ "table": "storage_cleanup_job"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_error",+ "entityType": "columns",+ "schema": "public",+ "table": "storage_cleanup_job"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "storage_cleanup_job"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "storage_cleanup_job"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "web_access_credentials"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "provider",+ "entityType": "columns",+ "schema": "public",+ "table": "web_access_credentials"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "encrypted_api_key",+ "entityType": "columns",+ "schema": "public",+ "table": "web_access_credentials"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "test_result",+ "entityType": "columns",+ "schema": "public",+ "table": "web_access_credentials"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_tested_at",+ "entityType": "columns",+ "schema": "public",+ "table": "web_access_credentials"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_content_report"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_content_report"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "source",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_content_report"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reason",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_content_report"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "content",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_content_report"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "note",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_content_report"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_content_report"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reviewed_at",+ "entityType": "columns",+ "schema": "public",+ "table": "ai_content_report"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "application_profile"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "data",+ "entityType": "columns",+ "schema": "public",+ "table": "application_profile"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reviewed_at",+ "entityType": "columns",+ "schema": "public",+ "table": "application_profile"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "revision",+ "entityType": "columns",+ "schema": "public",+ "table": "application_profile"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "create_request"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "create_request"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "fingerprint",+ "entityType": "columns",+ "schema": "public",+ "table": "create_request"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "application_id",+ "entityType": "columns",+ "schema": "public",+ "table": "create_request"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "create_request"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_comment"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "link_id",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_comment"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_comment"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "author_name",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_comment"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "body",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_comment"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resolved_at",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_comment"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_comment"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_event"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "link_id",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_event"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_event"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "type",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_event"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_event"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "label",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "snapshot",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_name",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "true",+ "generated": null,+ "identity": null,+ "name": "allow_comments",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": "'{}'",+ "generated": null,+ "identity": null,+ "name": "application_ids",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "revoked_at",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_viewed_at",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "thread_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_actions_thread_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_actions_resume_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "message_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_actions_message_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "thread_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_attachments_thread_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "message_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_attachments_message_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_attachments_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "thread_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "sequence",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_messages_thread_id_sequence_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_messages_user_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "status",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "last_message_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_threads_user_id_status_last_message_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "working_resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_threads_working_resume_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "cover_letter_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_threads_cover_letter_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "ai_provider_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "agent_threads_ai_provider_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "enabled",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "ai_providers_user_id_enabled_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "last_used_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "ai_providers_user_id_last_used_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "ai_providers_user_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": "\"is_default\"",+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "ai_providers_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "ai_request_user_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "ai_request"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "operation_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "ai_request_user_id_operation_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "ai_request"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "application_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "updated_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "application_user_id_updated_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "trashed_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "application_user_id_trashed_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "lane_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "application_user_id_lane_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "application_lane_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "application_lane"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "duplicate_key",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "career_answer_user_id_duplicate_key_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "application_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "career_artifact_user_id_application_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "job_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "career_artifact_job_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "application_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "status",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "career_fact_user_id_application_id_status_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "source_key",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "career_fact_user_id_source_key_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "schedule_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "due_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "career_job_schedule_id_due_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "career_job"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "status",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "lease_until",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "career_job_status_lease_until_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "career_job"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "key",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "career_notification_user_id_key_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "career_notification_user_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "url",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "career_opportunity_user_id_url_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "enabled",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "next_run_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "career_schedule_enabled_next_run_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "application_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "career_story_user_id_application_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "career_story"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "application_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "career_transcript_user_id_application_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "career_transcript"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "account_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "account"+ },+ {+ "nameExplicit": true,+ "columns": [+ {+ "value": "provider_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "account_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "account_provider_id_account_id_unique",+ "entityType": "indexes",+ "schema": "public",+ "table": "account"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "reference_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "apikey_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "key",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "apikey_key_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "config_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "apikey_config_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "enabled",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "reference_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "apikey_enabled_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "token",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_access_token_token_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "client_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_client_client_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "client_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_client_resource_client_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_client_resource"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "resource_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_client_resource_resource_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_client_resource"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "client_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "resource_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_client_resource_client_id_resource_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_client_resource"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "client_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_consent_user_id_client_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "token",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_refresh_token_token_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "passkey_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "passkey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "token",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "session_token_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "session"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "expires_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "session_expires_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "session"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "two_factor_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "secret",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "two_factor_secret_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "user_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "user"+ },+ {+ "nameExplicit": true,+ "columns": [+ {+ "value": "lower(\"email\")",+ "isExpression": true,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "user_email_lower_unique_idx",+ "entityType": "indexes",+ "schema": "public",+ "table": "user"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "identifier",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "verification_identifier_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "verification"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "updated_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "id",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "cover_letter_user_id_updated_at_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "trashed_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": "\"trashed_at\" is not null",+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "cover_letter_trashed_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "cover_letter_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "cover_letter_version_cover_letter_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "cover_letter_version"+ },+ {+ "nameExplicit": true,+ "columns": [+ {+ "value": "cover_letter_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "session_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": "\"kind\" = 'auto'",+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "cover_letter_version_session_unique",+ "entityType": "indexes",+ "schema": "public",+ "table": "cover_letter_version"+ },+ {+ "nameExplicit": true,+ "columns": [+ {+ "value": "hostname",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": "\"verified_at\" is not null",+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "custom_domain_verified_hostname",+ "entityType": "indexes",+ "schema": "public",+ "table": "custom_domain"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "updated_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_user_id_updated_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "is_public",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "slug",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_is_public_slug_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": true,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": "\"is_primary\"",+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_primary_unique",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "trashed_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": "\"trashed_at\" is not null",+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_trashed_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_slug_redirect_resume_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume_slug_redirect"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "date",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_statistics_daily_resume_id_date_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_version_resume_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "nameExplicit": true,+ "columns": [+ {+ "value": "resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "session_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": "\"kind\" = 'auto'",+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_version_session_unique",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "nameExplicit": true,+ "columns": [+ {+ "value": "status",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "next_attempt_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": "\"status\" = 'pending'",+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "storage_cleanup_job_due_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "storage_cleanup_job"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "reviewed_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "ai_content_report_reviewed_at_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "ai_content_report"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "create_request_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "create_request"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "link_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "feedback_comment_link_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "feedback_comment"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "feedback_comment_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "feedback_comment"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "link_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "feedback_event_link_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "feedback_event"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "created_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "feedback_link_user_id_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "resume_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "feedback_link_resume_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_actions_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": [+ "thread_id"+ ],+ "schemaTo": "public",+ "tableTo": "agent_threads",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_actions_thread_id_agent_threads_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": [+ "message_id"+ ],+ "schemaTo": "public",+ "tableTo": "agent_messages",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "agent_actions_message_id_agent_messages_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": [+ "resume_id"+ ],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "agent_actions_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_actions"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_attachments_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "nameExplicit": false,+ "columns": [+ "thread_id"+ ],+ "schemaTo": "public",+ "tableTo": "agent_threads",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_attachments_thread_id_agent_threads_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "nameExplicit": false,+ "columns": [+ "message_id"+ ],+ "schemaTo": "public",+ "tableTo": "agent_messages",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "agent_attachments_message_id_agent_messages_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_attachments"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_messages_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "nameExplicit": false,+ "columns": [+ "thread_id"+ ],+ "schemaTo": "public",+ "tableTo": "agent_threads",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_messages_thread_id_agent_threads_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_messages"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_threads_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": [+ "ai_provider_id"+ ],+ "schemaTo": "public",+ "tableTo": "ai_providers",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "agent_threads_ai_provider_id_ai_providers_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": [+ "source_resume_id"+ ],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "agent_threads_source_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": [+ "working_resume_id"+ ],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "agent_threads_working_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": [+ "cover_letter_id"+ ],+ "schemaTo": "public",+ "tableTo": "cover_letter",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "agent_threads_cover_letter_id_cover_letter_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": [+ "application_id"+ ],+ "schemaTo": "public",+ "tableTo": "application",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "agent_threads_application_id_application_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "agent_threads"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "ai_providers_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "ai_providers"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "ai_request_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "ai_request"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "application_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": false,+ "columns": [+ "resume_id"+ ],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "application_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": false,+ "columns": [+ "cover_letter_id"+ ],+ "schemaTo": "public",+ "tableTo": "cover_letter",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "application_cover_letter_id_cover_letter_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": false,+ "columns": [+ "sent_resume_version_id"+ ],+ "schemaTo": "public",+ "tableTo": "resume_version",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "application_sent_resume_version_id_resume_version_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": false,+ "columns": [+ "sent_cover_letter_version_id"+ ],+ "schemaTo": "public",+ "tableTo": "cover_letter_version",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "application_QJaGmijrxJ0T_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": true,+ "columns": [+ "user_id",+ "lane_id"+ ],+ "schemaTo": "public",+ "tableTo": "application_lane",+ "columnsTo": [+ "user_id",+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "NO ACTION",+ "name": "application_lane_owner_fk",+ "entityType": "fks",+ "schema": "public",+ "table": "application"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "application_lane_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "application_lane"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "application_pipeline_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "application_pipeline"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_answer_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "nameExplicit": false,+ "columns": [+ "application_id"+ ],+ "schemaTo": "public",+ "tableTo": "application",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_answer_application_id_application_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "nameExplicit": false,+ "columns": [+ "source_application_id"+ ],+ "schemaTo": "public",+ "tableTo": "application",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "career_answer_source_application_id_application_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_answer"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_artifact_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "nameExplicit": false,+ "columns": [+ "application_id"+ ],+ "schemaTo": "public",+ "tableTo": "application",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_artifact_application_id_application_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "nameExplicit": false,+ "columns": [+ "job_id"+ ],+ "schemaTo": "public",+ "tableTo": "career_job",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "career_artifact_job_id_career_job_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_artifact"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_fact_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "nameExplicit": false,+ "columns": [+ "application_id"+ ],+ "schemaTo": "public",+ "tableTo": "application",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_fact_application_id_application_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_fact"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_job_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_job"+ },+ {+ "nameExplicit": false,+ "columns": [+ "schedule_id"+ ],+ "schemaTo": "public",+ "tableTo": "career_schedule",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_job_schedule_id_career_schedule_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_job"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_notification_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "nameExplicit": false,+ "columns": [+ "application_id"+ ],+ "schemaTo": "public",+ "tableTo": "application",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_notification_application_id_application_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_notification"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_opportunity_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "nameExplicit": false,+ "columns": [+ "tracked_application_id"+ ],+ "schemaTo": "public",+ "tableTo": "application",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "career_opportunity_tracked_application_id_application_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_opportunity"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_profile_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_profile"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_schedule_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "nameExplicit": false,+ "columns": [+ "application_id"+ ],+ "schemaTo": "public",+ "tableTo": "application",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_schedule_application_id_application_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "nameExplicit": false,+ "columns": [+ "ai_provider_id"+ ],+ "schemaTo": "public",+ "tableTo": "ai_providers",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "career_schedule_ai_provider_id_ai_providers_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_schedule"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_story_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_story"+ },+ {+ "nameExplicit": false,+ "columns": [+ "application_id"+ ],+ "schemaTo": "public",+ "tableTo": "application",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_story_application_id_application_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_story"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_transcript_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_transcript"+ },+ {+ "nameExplicit": false,+ "columns": [+ "application_id"+ ],+ "schemaTo": "public",+ "tableTo": "application",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_transcript_application_id_application_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_transcript"+ },+ {+ "nameExplicit": false,+ "columns": [+ "application_id"+ ],+ "schemaTo": "public",+ "tableTo": "application",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_workspace_application_id_application_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_workspace"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "career_workspace_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "career_workspace"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "account_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "account"+ },+ {+ "nameExplicit": false,+ "columns": [+ "reference_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "apikey_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": [+ "client_id"+ ],+ "schemaTo": "public",+ "tableTo": "oauth_client",+ "columnsTo": [+ "client_id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_access_token_client_id_oauth_client_client_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": [+ "session_id"+ ],+ "schemaTo": "public",+ "tableTo": "session",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "oauth_access_token_session_id_session_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_access_token_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": [+ "refresh_id"+ ],+ "schemaTo": "public",+ "tableTo": "oauth_refresh_token",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_access_token_refresh_id_oauth_refresh_token_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_client_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "nameExplicit": false,+ "columns": [+ "client_id"+ ],+ "schemaTo": "public",+ "tableTo": "oauth_client",+ "columnsTo": [+ "client_id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_client_resource_client_id_oauth_client_client_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_client_resource"+ },+ {+ "nameExplicit": false,+ "columns": [+ "resource_id"+ ],+ "schemaTo": "public",+ "tableTo": "oauth_resource",+ "columnsTo": [+ "identifier"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_client_resource_dn2L1gs9Dolm_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_client_resource"+ },+ {+ "nameExplicit": false,+ "columns": [+ "client_id"+ ],+ "schemaTo": "public",+ "tableTo": "oauth_client",+ "columnsTo": [+ "client_id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_consent_client_id_oauth_client_client_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_consent_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "nameExplicit": false,+ "columns": [+ "client_id"+ ],+ "schemaTo": "public",+ "tableTo": "oauth_client",+ "columnsTo": [+ "client_id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_refresh_token_client_id_oauth_client_client_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "nameExplicit": false,+ "columns": [+ "session_id"+ ],+ "schemaTo": "public",+ "tableTo": "session",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "oauth_refresh_token_session_id_session_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_refresh_token_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "passkey_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "passkey"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "session_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "session"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "two_factor_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "cover_letter_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "nameExplicit": false,+ "columns": [+ "source_resume_id"+ ],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "cover_letter_source_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "nameExplicit": false,+ "columns": [+ "source_application_id"+ ],+ "schemaTo": "public",+ "tableTo": "application",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "cover_letter_source_application_id_application_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "cover_letter"+ },+ {+ "nameExplicit": false,+ "columns": [+ "cover_letter_id"+ ],+ "schemaTo": "public",+ "tableTo": "cover_letter",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "cover_letter_version_cover_letter_id_cover_letter_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "cover_letter_version"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "cover_letter_version_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "cover_letter_version"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "custom_domain_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "custom_domain"+ },+ {+ "nameExplicit": false,+ "columns": [+ "application_id"+ ],+ "schemaTo": "public",+ "tableTo": "application",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "resume_application_id_application_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ "resume_id"+ ],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_slug_redirect_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_slug_redirect"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_slug_redirect_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_slug_redirect"+ },+ {+ "nameExplicit": false,+ "columns": [+ "resume_id"+ ],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_statistics_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "nameExplicit": false,+ "columns": [+ "resume_id"+ ],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_statistics_daily_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "nameExplicit": false,+ "columns": [+ "resume_id"+ ],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_version_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_version_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_version"+ },+ {+ "nameExplicit": false,+ "columns": [+ "resume_id"+ ],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_writing_review_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_writing_review"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_writing_review_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_writing_review"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "web_access_credentials_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "web_access_credentials"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "ai_content_report_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "ai_content_report"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "application_profile_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "application_profile"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "create_request_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "create_request"+ },+ {+ "nameExplicit": false,+ "columns": [+ "link_id"+ ],+ "schemaTo": "public",+ "tableTo": "feedback_link",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "feedback_comment_link_id_feedback_link_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "feedback_comment"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "feedback_comment_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "feedback_comment"+ },+ {+ "nameExplicit": false,+ "columns": [+ "link_id"+ ],+ "schemaTo": "public",+ "tableTo": "feedback_link",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "feedback_event_link_id_feedback_link_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "feedback_event"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "feedback_event_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "feedback_event"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id"+ ],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "feedback_link_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "nameExplicit": false,+ "columns": [+ "resume_id"+ ],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": [+ "id"+ ],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "feedback_link_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "feedback_link"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "agent_actions_pkey",+ "schema": "public",+ "table": "agent_actions",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "agent_attachments_pkey",+ "schema": "public",+ "table": "agent_attachments",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "agent_messages_pkey",+ "schema": "public",+ "table": "agent_messages",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "agent_threads_pkey",+ "schema": "public",+ "table": "agent_threads",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "ai_providers_pkey",+ "schema": "public",+ "table": "ai_providers",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "ai_request_pkey",+ "schema": "public",+ "table": "ai_request",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "application_pkey",+ "schema": "public",+ "table": "application",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "application_lane_pkey",+ "schema": "public",+ "table": "application_lane",+ "entityType": "pks"+ },+ {+ "columns": [+ "user_id"+ ],+ "nameExplicit": false,+ "name": "application_pipeline_pkey",+ "schema": "public",+ "table": "application_pipeline",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "career_answer_pkey",+ "schema": "public",+ "table": "career_answer",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "career_artifact_pkey",+ "schema": "public",+ "table": "career_artifact",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "career_fact_pkey",+ "schema": "public",+ "table": "career_fact",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "career_job_pkey",+ "schema": "public",+ "table": "career_job",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "career_notification_pkey",+ "schema": "public",+ "table": "career_notification",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "career_opportunity_pkey",+ "schema": "public",+ "table": "career_opportunity",+ "entityType": "pks"+ },+ {+ "columns": [+ "user_id"+ ],+ "nameExplicit": false,+ "name": "career_profile_pkey",+ "schema": "public",+ "table": "career_profile",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "career_schedule_pkey",+ "schema": "public",+ "table": "career_schedule",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "career_story_pkey",+ "schema": "public",+ "table": "career_story",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "career_transcript_pkey",+ "schema": "public",+ "table": "career_transcript",+ "entityType": "pks"+ },+ {+ "columns": [+ "application_id"+ ],+ "nameExplicit": false,+ "name": "career_workspace_pkey",+ "schema": "public",+ "table": "career_workspace",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "account_pkey",+ "schema": "public",+ "table": "account",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "apikey_pkey",+ "schema": "public",+ "table": "apikey",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "jwks_pkey",+ "schema": "public",+ "table": "jwks",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "oauth_access_token_pkey",+ "schema": "public",+ "table": "oauth_access_token",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "oauth_client_pkey",+ "schema": "public",+ "table": "oauth_client",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "oauth_client_assertion_pkey",+ "schema": "public",+ "table": "oauth_client_assertion",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "oauth_client_resource_pkey",+ "schema": "public",+ "table": "oauth_client_resource",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "oauth_consent_pkey",+ "schema": "public",+ "table": "oauth_consent",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "oauth_refresh_token_pkey",+ "schema": "public",+ "table": "oauth_refresh_token",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "oauth_resource_pkey",+ "schema": "public",+ "table": "oauth_resource",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "passkey_pkey",+ "schema": "public",+ "table": "passkey",+ "entityType": "pks"+ },+ {+ "columns": [+ "username"+ ],+ "nameExplicit": false,+ "name": "released_username_pkey",+ "schema": "public",+ "table": "released_username",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "session_pkey",+ "schema": "public",+ "table": "session",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "two_factor_pkey",+ "schema": "public",+ "table": "two_factor",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "user_pkey",+ "schema": "public",+ "table": "user",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "verification_pkey",+ "schema": "public",+ "table": "verification",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "cover_letter_pkey",+ "schema": "public",+ "table": "cover_letter",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "cover_letter_version_pkey",+ "schema": "public",+ "table": "cover_letter_version",+ "entityType": "pks"+ },+ {+ "columns": [+ "user_id"+ ],+ "nameExplicit": false,+ "name": "custom_domain_pkey",+ "schema": "public",+ "table": "custom_domain",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "resume_pkey",+ "schema": "public",+ "table": "resume",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "resume_slug_redirect_pkey",+ "schema": "public",+ "table": "resume_slug_redirect",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "resume_statistics_pkey",+ "schema": "public",+ "table": "resume_statistics",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "resume_statistics_daily_pkey",+ "schema": "public",+ "table": "resume_statistics_daily",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "resume_version_pkey",+ "schema": "public",+ "table": "resume_version",+ "entityType": "pks"+ },+ {+ "columns": [+ "resume_id"+ ],+ "nameExplicit": false,+ "name": "resume_writing_review_pkey",+ "schema": "public",+ "table": "resume_writing_review",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "storage_cleanup_job_pkey",+ "schema": "public",+ "table": "storage_cleanup_job",+ "entityType": "pks"+ },+ {+ "columns": [+ "user_id"+ ],+ "nameExplicit": false,+ "name": "web_access_credentials_pkey",+ "schema": "public",+ "table": "web_access_credentials",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "ai_content_report_pkey",+ "schema": "public",+ "table": "ai_content_report",+ "entityType": "pks"+ },+ {+ "columns": [+ "user_id"+ ],+ "nameExplicit": false,+ "name": "application_profile_pkey",+ "schema": "public",+ "table": "application_profile",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "create_request_pkey",+ "schema": "public",+ "table": "create_request",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "feedback_comment_pkey",+ "schema": "public",+ "table": "feedback_comment",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "feedback_event_pkey",+ "schema": "public",+ "table": "feedback_event",+ "entityType": "pks"+ },+ {+ "columns": [+ "id"+ ],+ "nameExplicit": false,+ "name": "feedback_link_pkey",+ "schema": "public",+ "table": "feedback_link",+ "entityType": "pks"+ },+ {+ "nameExplicit": true,+ "columns": [+ "user_id",+ "id"+ ],+ "nullsNotDistinct": false,+ "name": "application_lane_owner_id_unique",+ "entityType": "uniques",+ "schema": "public",+ "table": "application_lane"+ },+ {+ "nameExplicit": true,+ "columns": [+ "user_id",+ "system_key"+ ],+ "nullsNotDistinct": false,+ "name": "application_lane_owner_system_unique",+ "entityType": "uniques",+ "schema": "public",+ "table": "application_lane"+ },+ {+ "nameExplicit": false,+ "columns": [+ "slug",+ "user_id"+ ],+ "nullsNotDistinct": false,+ "name": "resume_slug_user_id_unique",+ "entityType": "uniques",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ "user_id",+ "slug"+ ],+ "nullsNotDistinct": false,+ "name": "resume_slug_redirect_user_id_slug_unique",+ "entityType": "uniques",+ "schema": "public",+ "table": "resume_slug_redirect"+ },+ {+ "nameExplicit": false,+ "columns": [+ "resume_id",+ "date"+ ],+ "nullsNotDistinct": false,+ "name": "resume_statistics_daily_resume_id_date_unique",+ "entityType": "uniques",+ "schema": "public",+ "table": "resume_statistics_daily"+ },+ {+ "nameExplicit": true,+ "columns": [+ "owner_id",+ "storage_key"+ ],+ "nullsNotDistinct": false,+ "name": "storage_cleanup_job_owner_key_unique",+ "entityType": "uniques",+ "schema": "public",+ "table": "storage_cleanup_job"+ },+ {+ "nameExplicit": false,+ "columns": [+ "token"+ ],+ "nullsNotDistinct": false,+ "name": "oauth_access_token_token_key",+ "schema": "public",+ "table": "oauth_access_token",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": [+ "client_id"+ ],+ "nullsNotDistinct": false,+ "name": "oauth_client_client_id_key",+ "schema": "public",+ "table": "oauth_client",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": [+ "identifier"+ ],+ "nullsNotDistinct": false,+ "name": "oauth_resource_identifier_key",+ "schema": "public",+ "table": "oauth_resource",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": [+ "token"+ ],+ "nullsNotDistinct": false,+ "name": "session_token_key",+ "schema": "public",+ "table": "session",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": [+ "email"+ ],+ "nullsNotDistinct": false,+ "name": "user_email_key",+ "schema": "public",+ "table": "user",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": [+ "username"+ ],+ "nullsNotDistinct": false,+ "name": "user_username_key",+ "schema": "public",+ "table": "user",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": [+ "display_username"+ ],+ "nullsNotDistinct": false,+ "name": "user_display_username_key",+ "schema": "public",+ "table": "user",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": [+ "identifier"+ ],+ "nullsNotDistinct": false,+ "name": "verification_identifier_key",+ "schema": "public",+ "table": "verification",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": [+ "resume_id"+ ],+ "nullsNotDistinct": false,+ "name": "resume_statistics_resume_id_key",+ "schema": "public",+ "table": "resume_statistics",+ "entityType": "uniques"+ }+ ],+ "renames": []+}\ No newline at end of filediff --git a/packages/api/src/dto/resume.ts b/packages/api/src/dto/resume.tsindex 42938c9b4..72d7a4b4b 100644--- a/packages/api/src/dto/resume.ts+++ b/packages/api/src/dto/resume.ts@@ -2,6 +2,7 @@ import { createSelectSchema } from "drizzle-zod";import z from "zod";import * as schema from "@reactive-resume/db/schema";import { jsonPatchOperationSchema } from "@reactive-resume/resume/patch";+import { aiOperationIdsSchema, aiUsageSummarySchema } from "@reactive-resume/schema/ai-usage";import { resumeDataSchema } from "@reactive-resume/schema/resume/data";import { slugSchema } from "@reactive-resume/schema/resume/slug";import { writableResumeDataSchema } from "@reactive-resume/schema/resume/write";@@ -41,7 +42,16 @@ const resumeSchema = createSelectSchema(schema.resume, {})// Trash and automatic naming and addresses stay internal to the documents API. getById exposes the application link// explicitly because the editor uses it to select the application a tailored copy belongs to.- .omit({ applicationId: true, trashedAt: true, autoName: true, autoSlug: true, editedAt: true });+ .omit({ applicationId: true, trashedAt: true, autoName: true, autoSlug: true, editedAt: true, aiOperationIds: true });++const aiSourceShape = {+ aiOperationIds: aiOperationIdsSchema.optional(),+ aiUsage: aiUsageSummarySchema.nullable().optional(),+};+const ownedResumeSchema = resumeSchema.omit({ password: true, userId: true }).extend({+ hasPassword: z.boolean(),+ ...aiSourceShape,+});const versionSchema = z.object({id: z.string().describe("The ID of the version."),@@ -64,10 +74,9 @@ export const expectedRevisionSchema = z.describe("If provided, the change only applies when the resume version still matches this timestamp; otherwise RESUME_VERSION_CONFLICT (409).",);-export const acceptedRevisionSchema = resumeSchema- .omit({ password: true, userId: true })- .extend({ hasPassword: z.boolean() })- .describe("The resume as the change left it, with its new updatedAt.");+export const acceptedRevisionSchema = ownedResumeSchema.describe(+ "The resume as the change left it, with its new updatedAt.",+);export const resumeDto = {list: {@@ -87,8 +96,7 @@ export const resumeDto = {getById: {input: resumeSchema.pick({ id: true }),- output: resumeSchema.omit({ password: true, userId: true }).extend({- hasPassword: z.boolean(),+ output: ownedResumeSchema.extend({applicationId: z.string().nullable().describe("The job application this resume was made for, if any."),}),},@@ -122,7 +130,7 @@ export const resumeDto = {},import: {- input: z.object({ data: writableResumeDataSchema }),+ input: z.object({ data: writableResumeDataSchema, aiOperationIds: aiOperationIdsSchema.optional() }),output: z.string().describe("The ID of the imported resume."),},@@ -147,6 +155,7 @@ export const resumeDto = {allowWordDownload: z.boolean().optional(),slug: slugSchema.optional(),data: writableResumeDataSchema.optional(),+ aiOperationIds: aiOperationIdsSchema.optional(),expectedUpdatedAt: z.coerce.date().optional()@@ -161,7 +170,7 @@ export const resumeDto = {"Identifies one editing session. Saves that share it keep one autosave version, refreshed at most every two minutes.",),}),- output: resumeSchema.omit({ password: true, userId: true }).extend({ hasPassword: z.boolean() }),+ output: ownedResumeSchema,},checkSlug: {@@ -213,7 +222,7 @@ export const resumeDto = {),proposalSafety: proposalSafetySchema,}),- output: resumeSchema.omit({ password: true, userId: true }).extend({ hasPassword: z.boolean() }),+ output: ownedResumeSchema,},duplicate: {@@ -248,7 +257,7 @@ export const resumeDto = {resumeId: z.string().describe("The ID of the resume the version belongs to."),versionId: z.string().describe("The ID of the version."),}),- output: versionSchema.extend({ data: resumeDataSchema }),+ output: versionSchema.extend({ data: resumeDataSchema, ...aiSourceShape }),},createVersion: {@@ -282,6 +291,6 @@ export const resumeDto = {versionId: z.string().describe("The ID of the version snapshot to restore."),proposalSafety: proposalSafetySchema,}),- output: resumeSchema.omit({ password: true, userId: true }).extend({ hasPassword: z.boolean() }),+ output: ownedResumeSchema,},};diff --git a/packages/api/src/features/ai/router.ts b/packages/api/src/features/ai/router.tsindex 094f63eb7..c2aab42ab 100644--- a/packages/api/src/features/ai/router.ts+++ b/packages/api/src/features/ai/router.ts@@ -2,7 +2,7 @@ import { ORPCError } from "@orpc/client";import { AISDKError } from "ai";import { flattenError, ZodError, z } from "zod";import { aiModelForTask } from "@reactive-resume/ai/task-models";-import { aiWeeklyUsageSchema, aiUsageSummarySchema } from "@reactive-resume/schema/ai-usage";+import { aiOperationIdsSchema, aiWeeklyUsageSchema, aiUsageSummarySchema } from "@reactive-resume/schema/ai-usage";import { resumeDataSchema } from "@reactive-resume/schema/resume/data";import { protectedProcedure } from "../../context";import { aiRequestRateLimit } from "../../middleware/rate-limit";@@ -113,17 +113,24 @@ export const aiRouter = {"Extracts structured resume data from a PDF file with one of the user's saved AI providers: the one named by `aiProviderId`, or their default. Send the file as a base64-encoded string. Returns a complete ResumeData object and saves nothing.",successDescription: "The PDF was successfully parsed into structured resume data.",})- .input(z.object({ aiProviderId: z.string().optional(), file: fileInputSchema }))+ .input(+ z.object({+ aiProviderId: z.string().optional(),+ file: fileInputSchema,+ includeProvenance: z.boolean().optional(),+ }),+ ).use(aiRequestRateLimit).errors(aiErrors)- .output(resumeDataSchema)+ .output(resumeDataSchema.extend({ aiOperationIds: aiOperationIdsSchema.optional() })).handler(async ({ context, input, signal }) => {try {const provider = await getRunnableProvider(context.user.id, input.aiProviderId);await aiProvidersService.authorize({ userId: context.user.id, id: provider.id });signal?.throwIfAborted();- return await aiService.parsePdf({- usage: createAiUsage(context.user.id, "import-pdf", provider),+ const usage = createAiUsage(context.user.id, "import-pdf", provider);+ const data = await aiService.parsePdf({+ usage,provider: provider.provider,model: aiModelForTask(provider, "fast"),apiKey: provider.apiKey,@@ -131,6 +138,7 @@ export const aiRouter = {file: input.file,signal,});+ return input.includeProvenance ? { ...data, aiOperationIds: [usage.operationId] } : data;} catch (error) {rethrowAiError(error, "The AI returned resume data in the wrong format. Try again, or choose another model.");}@@ -151,6 +159,7 @@ export const aiRouter = {z.object({aiProviderId: z.string().optional(),file: fileInputSchema,+ includeProvenance: z.boolean().optional(),mediaType: z.enum(["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document",@@ -159,14 +168,15 @@ export const aiRouter = {).use(aiRequestRateLimit).errors(aiErrors)- .output(resumeDataSchema)+ .output(resumeDataSchema.extend({ aiOperationIds: aiOperationIdsSchema.optional() })).handler(async ({ context, input, signal }) => {try {const provider = await getRunnableProvider(context.user.id, input.aiProviderId);await aiProvidersService.authorize({ userId: context.user.id, id: provider.id });signal?.throwIfAborted();- return await aiService.parseDocx({- usage: createAiUsage(context.user.id, "import-docx", provider),+ const usage = createAiUsage(context.user.id, "import-docx", provider);+ const data = await aiService.parseDocx({+ usage,provider: provider.provider,model: aiModelForTask(provider, "fast"),apiKey: provider.apiKey,@@ -175,6 +185,7 @@ export const aiRouter = {file: input.file,signal,});+ return input.includeProvenance ? { ...data, aiOperationIds: [usage.operationId] } : data;} catch (error) {rethrowAiError(error, "The AI returned resume data in the wrong format. Try again, or choose another model.");}diff --git a/packages/api/src/features/ai/usage.integration.test.ts b/packages/api/src/features/ai/usage.integration.test.tsindex 0cd52787f..9b3678528 100644--- a/packages/api/src/features/ai/usage.integration.test.ts+++ b/packages/api/src/features/ai/usage.integration.test.ts@@ -5,7 +5,7 @@ import { createServer } from "node:http";import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vite-plus/test";import { createRouterClient } from "@orpc/server";import { generateText, stepCountIs, streamText, tool } from "ai";-import { strFromU8, unzipSync } from "fflate";+import { strFromU8, unzipSync, zipSync, strToU8 } from "fflate";import { Pool } from "pg";import { z } from "zod";import { db, withDatabasePool } from "@reactive-resume/db/client";@@ -18,6 +18,8 @@ import { authService } from "../auth/service";import { careerRouter } from "../career/router";import { coverLettersRouter } from "../cover-letters/router";import { assertDocumentVersion } from "../documents/ownership";+import { documentsRouter } from "../documents/router";+import { resumeRouter } from "../resume/router";import { aiRouter } from "./router";import { getModel } from "./service";import { createAiUsage, readAiUsage, readWeeklyAiUsage } from "./usage";@@ -43,7 +45,7 @@ describe.skipIf(!databaseUrl)("AI request metering through installed SDK, proteclet pool: Pool;let baseURL: string;let user: typeof tables.user.$inferSelect;- let mode: "text" | "retry" | "tools" | "stream" | "failure" | "hold" | "reply" | "answer" | "writing";+ let mode: "text" | "retry" | "tools" | "stream" | "failure" | "hold" | "reply" | "answer" | "writing" | "resume";let release = () => {};let arrived = () => {};let requests: { model: string; path: string }[] = [];@@ -79,25 +81,27 @@ describe.skipIf(!databaseUrl)("AI request metering through installed SDK, protec}const callsTool = mode === "tools" && requests.length === 1;const text =- mode === "writing"- ? JSON.stringify({- summary: "Fictional saved wording review",- strengths: [],- suggestions: [],- jdAlignment: null,- })- : mode === "answer"- ? JSON.stringify({ text: "Built a fictional reporting workflow.", factIds: [], note: null })- : mode === "reply"- ? JSON.stringify({- title: "Reply",- asks: [],- unconfirmed: [],- reply: "Thank you.",- changes: [],- offer: null,- })- : "done";+ mode === "resume"+ ? JSON.stringify(sampleResumeData)+ : mode === "writing"+ ? JSON.stringify({+ summary: "Fictional saved wording review",+ strengths: [],+ suggestions: [],+ jdAlignment: null,+ })+ : mode === "answer"+ ? JSON.stringify({ text: "Built a fictional reporting workflow.", factIds: [], note: null })+ : mode === "reply"+ ? JSON.stringify({+ title: "Reply",+ asks: [],+ unconfirmed: [],+ reply: "Thank you.",+ changes: [],+ offer: null,+ })+ : "done";res.writeHead(200, { "content-type": "application/json" });res.end(JSON.stringify({@@ -127,7 +131,14 @@ describe.skipIf(!databaseUrl)("AI request metering through installed SDK, protecconst run = (operation: () => Promise<void>) => withDatabasePool(pool, operation);const client = (permissions: ("read" | "write" | "delete")[] = ["read", "write", "delete"]) =>createRouterClient(- { ai: aiRouter, auth: authRouter, career: careerRouter, letters: coverLettersRouter },+ {+ ai: aiRouter,+ auth: authRouter,+ career: careerRouter,+ letters: coverLettersRouter,+ resume: resumeRouter,+ documents: documentsRouter,+ },{context: {locale: "en-US",@@ -550,6 +561,136 @@ describe.skipIf(!databaseUrl)("AI request metering through installed SDK, protecexpect(requests).toHaveLength(1);}));+ it("pairs reviewed resume imports with real request sources through old edits, copies, history, export and deletion", () =>+ run(async () => {+ const connection = await provider();+ const api = client();+ mode = "resume";+ const file = { name: "fictional.pdf", data: Buffer.from("%PDF-fictional").toString("base64") };+ const legacy = await api.ai.parsePdf({ file });+ expect(legacy).not.toHaveProperty("aiOperationIds");+ const bytes = zipSync({+ "word/document.xml": strToU8(+ '<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"><w:body><w:p><w:r><w:t>Fictional resume</w:t></w:r></w:p></w:body></w:document>',+ ),+ });+ const { aiOperationIds, ...data } = await api.ai.parseDocx({+ file: { name: "fictional.docx", data: Buffer.from(bytes).toString("base64") },+ mediaType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",+ includeProvenance: true,+ });+ expect(aiOperationIds).toEqual([expect.any(String)]);+ expect((await pool.query("select * from resume")).rows).toEqual([]);+ const id = await api.resume.import({ data, aiOperationIds });+ const imported = await api.resume.getById({ id });+ const expected = {+ requests: 1,+ models: [+ { providerId: connection.id, label: connection.label, provider: connection.provider, model: "fast-model" },+ ],+ };+ expect(imported.aiOperationIds).toEqual(aiOperationIds);+ expect(imported.aiUsage).toEqual(expected);+ expect(imported.data).not.toHaveProperty("aiOperationIds");+ const first = (await api.resume.listVersions({ resumeId: id }))[0];+ if (!first) throw new Error("Missing import version");+ expect((await api.resume.getVersion({ resumeId: id, versionId: first.id })).aiUsage).toEqual(expected);+ const reviewed = { ...data, summary: { ...data.summary, content: "<p>Reviewed import</p>" } };+ const saved = await api.resume.update({+ id,+ data: reviewed,+ expectedUpdatedAt: imported.updatedAt,+ sessionId: "reviewed",+ });+ expect(saved.aiUsage).toEqual(expected);+ await expect(client(["read"]).resume.import({ data, aiOperationIds })).rejects.toMatchObject({+ code: "FORBIDDEN",+ });+ for (const [operationId, userId, action] of [+ ["foreign-resume", "usage-bob", "import-docx"],+ ["wrong-resume", user.id, "provider-test"],+ ] as const) {+ await db.insert(tables.aiRequest).values({+ operationId,+ userId,+ action,+ providerId: connection.id,+ label: connection.label,+ provider: connection.provider,+ model: "unrelated-model",+ });+ }+ for (const bad of ["foreign-resume", "wrong-resume", "fabricated-source"]) {+ await expect(api.resume.import({ data, aiOperationIds: [bad] })).rejects.toMatchObject({ code: "BAD_REQUEST" });+ await expect(+ api.resume.update({ id, data, aiOperationIds: [bad], expectedUpdatedAt: saved.updatedAt }),+ ).rejects.toMatchObject({ code: "BAD_REQUEST" });+ }+ await expect(api.resume.update({ id, aiOperationIds: [] })).rejects.toMatchObject({ code: "BAD_REQUEST" });+ expect((await api.resume.getById({ id })).data.summary.content).toBe("<p>Reviewed import</p>");+ const duplicateId = await api.resume.duplicate({ id });+ const copy = await api.documents.copyForJob({ resumeId: id, name: "Fictional job copy" });+ for (const copyId of [duplicateId, copy])+ expect((await api.resume.getById({ id: copyId })).aiUsage).toEqual(expected);+ await api.resume.createVersion({ resumeId: id, name: "Reviewed" });+ const [application] = await db+ .insert(tables.application)+ .values({ userId: user.id, company: "Fictional recipient", role: "Engineer", resumeId: id })+ .returning();+ if (!application) throw new Error("Missing submission application");+ await api.career.submitApplication({+ applicationId: application.id,+ answers: [],+ expectedAnswers: [],+ expectedDocuments: { resumeId: id, coverLetterId: null },+ });+ const sent = (await api.resume.listVersions({ resumeId: id })).find((version) => version.kind === "sent");+ if (!sent) throw new Error("Missing sent version");+ expect((await api.resume.getVersion({ resumeId: id, versionId: sent.id })).aiUsage).toEqual(expected);+ await api.resume.update({ id, isPublic: true });+ const published = await api.resume.getById({ id });+ const publicResult = await api.resume.getBySlug({ username: user.username, slug: published.slug });+ expect(publicResult).not.toHaveProperty("aiOperationIds");+ expect(publicResult).not.toHaveProperty("aiUsage");+ await aiProvidersService.update({ userId: user.id, id: connection.id, label: "Renamed", model: "replacement" });+ await aiProvidersService.delete({ userId: user.id, id: connection.id });+ expect((await api.resume.getById({ id })).aiUsage).toEqual(expected);+ const restored = await api.resume.restoreVersion({ resumeId: id, versionId: first.id, proposalSafety: "v1" });+ expect(restored.aiUsage).toEqual(expected);+ expect(restored.data.summary.content).toBe(data.summary.content);+ const exported = await client(["read"]).auth.exportData({});+ expect(exported.resumes.find((row) => row.id === id)?.aiOperationIds).toEqual(aiOperationIds);+ expect(exported.documentVersions?.resumes.find((row) => row.id === first.id)?.aiOperationIds).toEqual(+ aiOperationIds,+ );+ const archive = unzipSync(buildAccountZip(exported));+ const resumeFile = Object.keys(archive).find(+ (name) => name.startsWith("resumes/") && name.endsWith(`${id}.json`),+ );+ if (!resumeFile || !archive[resumeFile]) throw new Error("Missing resume account archive");+ expect(JSON.parse(strFromU8(archive[resumeFile])).aiOperationIds).toEqual(aiOperationIds);+ await pool.query("update resume_version set ai_operation_ids='{}' where id=$1", [first.id]);+ const legacyRestored = await api.resume.restoreVersion({+ resumeId: id,+ versionId: first.id,+ proposalSafety: "v1",+ });+ expect(legacyRestored.aiOperationIds).toEqual([]);+ expect(legacyRestored.aiUsage).toBeNull();+ const beforeRestore = (await api.resume.listVersions({ resumeId: id })).find(+ (version) => version.kind === "before-restore",+ );+ if (!beforeRestore) throw new Error("Missing before-restore version");+ expect((await api.resume.getVersion({ resumeId: id, versionId: beforeRestore.id })).aiUsage).toEqual(expected);+ const localId = await api.resume.import({ data });+ expect((await api.resume.getById({ id: localId })).aiUsage).toBeNull();+ await authService.deleteAccount({ userId: user.id });+ for (const table of ["resume", "resume_version"])+ expect((await pool.query(`select * from ${table}`)).rows).toEqual([]);+ expect((await pool.query("select * from ai_request where user_id=$1", [user.id])).rows).toEqual([]);+ expect(requests).toHaveLength(2);+ }));+it("keeps letter draft sources through owned saves, reuse, history, export and deletion without new dispatches", () =>run(async () => {const connection = await provider();diff --git a/packages/api/src/features/applications/packet.ts b/packages/api/src/features/applications/packet.tsindex 0eb81393a..7d19cc0a4 100644--- a/packages/api/src/features/applications/packet.ts+++ b/packages/api/src/features/applications/packet.ts@@ -223,6 +223,7 @@ export const applicationPackets = {userId,resumeId: captured.resume.id,data: captured.resume.data,+ aiOperationIds: captured.resume.aiOperationIds,kind: "named",name: `Autofill packet — ${captured.review.application.company}`,});diff --git a/packages/api/src/features/applications/service.ts b/packages/api/src/features/applications/service.tsindex d22a32af6..7c20021d9 100644--- a/packages/api/src/features/applications/service.ts+++ b/packages/api/src/features/applications/service.ts@@ -291,6 +291,7 @@ export async function recordSentResume(resumeId: row.resumeId,userId: row.userId,data: resume.data,+ aiOperationIds: resume.aiOperationIds,kind: "sent",name: row.company,});diff --git a/packages/api/src/features/auth/service.ts b/packages/api/src/features/auth/service.tsindex 2bfc317b9..532ccb4e4 100644--- a/packages/api/src/features/auth/service.ts+++ b/packages/api/src/features/auth/service.ts@@ -88,6 +88,7 @@ export const authService = {slug: schema.resume.slug,tags: schema.resume.tags,data: schema.resume.data,+ aiOperationIds: schema.resume.aiOperationIds,isPublic: schema.resume.isPublic,showDownloadButtons: schema.resume.showDownloadButtons,allowWordDownload: schema.resume.allowWordDownload,diff --git a/packages/api/src/features/cover-letters/service.integration.test.ts b/packages/api/src/features/cover-letters/service.integration.test.tsindex f86deaef1..25bb5e6b3 100644--- a/packages/api/src/features/cover-letters/service.integration.test.ts+++ b/packages/api/src/features/cover-letters/service.integration.test.ts@@ -323,7 +323,10 @@ describe.skipIf(!process.env.COVER_LETTER_TEST_DATABASE_URL)("cover-letter ownedconst { resumeService } = await import("../resume/service");const client = createRouterClient(crudRouter, { context: { user: { id: "alice" } } as never });await proposalThread("own", "alice", "resume", "alice-resume");- let current = { ...(await resumeService.getById({ id: "alice-resume", userId: "alice" })) };+ let current: Awaited<ReturnType<typeof client.update>> = await resumeService.getById({+ id: "alice-resume",+ userId: "alice",+ });for (const [applied, content] of [[true, "<p>Original</p><p>Added</p>"],[false, "<p>Original</p>"],diff --git a/packages/api/src/features/documents/service.ts b/packages/api/src/features/documents/service.tsindex 1e0b1d2de..9b7d57c27 100644--- a/packages/api/src/features/documents/service.ts+++ b/packages/api/src/features/documents/service.ts@@ -419,6 +419,7 @@ export const documentsService = {tags: source.tags,locale: source.data.metadata.page.locale as never,data: source.data,+ aiOperationIds: source.aiOperationIds,...(created || newJob? {inTransaction: async (tx, copyId) => {diff --git a/packages/api/src/features/documents/version-history.ts b/packages/api/src/features/documents/version-history.tsindex 1da8934ee..426a46ea3 100644--- a/packages/api/src/features/documents/version-history.ts+++ b/packages/api/src/features/documents/version-history.ts@@ -26,6 +26,7 @@ type VersionTable = {documentKey: string;userId: PgColumn;data: PgColumn;+ aiOperationIds?: PgColumn;kind: PgColumn;name: PgColumn;sessionId: PgColumn;@@ -50,6 +51,10 @@ export function createVersionHistory<TKind extends string, TData>(config: {}) {const v = config.versions;const summary = { id: v.id, kind: v.kind, name: v.name, createdAt: v.createdAt };+ const stored = (input: { data: TData; aiOperationIds?: string[] | undefined }) => ({+ data: config.toStored(input.data),+ ...(v.aiOperationIds ? { aiOperationIds: input.aiOperationIds ?? [] } : {}),+ });const ownedVersion = (input: Owned & { versionId: string }) =>and(eq(v.id, input.versionId), eq(v.document, input.documentId), eq(v.userId, input.userId));@@ -79,7 +84,13 @@ export function createVersionHistory<TKind extends string, TData>(config: {async function write(client: DbOrTx,- input: Owned & { data: TData; kind: TKind; name?: string | null | undefined; sessionId?: string | undefined },+ input: Owned & {+ data: TData;+ aiOperationIds?: string[] | undefined;+ kind: TKind;+ name?: string | null | undefined;+ sessionId?: string | undefined;+ },) {if (input.kind === "named") {const [named] = await client@@ -97,7 +108,7 @@ export function createVersionHistory<TKind extends string, TData>(config: {.values({[v.documentKey]: input.documentId,userId: input.userId,- data: config.toStored(input.data),+ ...stored(input),kind: input.kind,name: input.name ?? null,sessionId: input.sessionId ?? null,@@ -117,7 +128,9 @@ export function createVersionHistory<TKind extends string, TData>(config: {* two minutes. Callers that send no session (API clients) get a new autosave once the newest version is two* minutes old. Best effort: it never fails or delays the save beyond its own queries.*/- async saveSession(input: Owned & { data: TData; sessionId?: string | undefined }) {+ async saveSession(+ input: Owned & { data: TData; aiOperationIds?: string[] | undefined; sessionId?: string | undefined },+ ) {try {const [latest] = await db.select({ id: v.id, createdAt: v.createdAt })@@ -136,7 +149,7 @@ export function createVersionHistory<TKind extends string, TData>(config: {if (latest && input.sessionId) {await db.update(v.table)- .set({ data: config.toStored(input.data), createdAt: new Date() } as never)+ .set({ ...stored(input), createdAt: new Date() } as never).where(eq(v.id, latest.id));return;}@@ -178,11 +191,11 @@ export function createVersionHistory<TKind extends string, TData>(config: {async get(input: Owned & { versionId: string }) {const [version] = await db- .select({ ...summary, data: v.data })+ .select({ ...summary, data: v.data, ...(v.aiOperationIds ? { aiOperationIds: v.aiOperationIds } : {}) }).from(v.table).where(ownedVersion(input));if (!version) throw new ORPCError("NOT_FOUND");- return version as VersionSummary<TKind> & { data: unknown };+ return version as VersionSummary<TKind> & { data: unknown; aiOperationIds?: string[] };},/** Named versions are the user's own; only they can be renamed or deleted. */diff --git a/packages/api/src/features/resume/crud.ts b/packages/api/src/features/resume/crud.tsindex 6c1e94f8e..5760f2e60 100644--- a/packages/api/src/features/resume/crud.ts+++ b/packages/api/src/features/resume/crud.ts@@ -133,6 +133,7 @@ export const crudRouter = {locale: context.locale,userId: context.user.id,origin: "import",+ ...(input.aiOperationIds !== undefined ? { aiOperationIds: input.aiOperationIds } : {}),});return id;@@ -177,6 +178,7 @@ export const crudRouter = {...(input.slug !== undefined ? { slug: input.slug } : {}),...(input.tags !== undefined ? { tags: input.tags } : {}),...(input.data !== undefined ? { data: input.data } : {}),+ ...(input.aiOperationIds !== undefined ? { aiOperationIds: input.aiOperationIds } : {}),...(input.isPublic !== undefined ? { isPublic: input.isPublic } : {}),...(input.showDownloadButtons !== undefined ? { showDownloadButtons: input.showDownloadButtons } : {}),...(input.allowWordDownload !== undefined ? { allowWordDownload: input.allowWordDownload } : {}),@@ -278,6 +280,7 @@ export const crudRouter = {tags: input.tags ?? original.tags,locale: input.pageLocale ?? context.locale,data,+ aiOperationIds: original.aiOperationIds,});}),diff --git a/packages/api/src/features/resume/service.test.ts b/packages/api/src/features/resume/service.test.tsindex db9c631e5..28df28b4c 100644--- a/packages/api/src/features/resume/service.test.ts+++ b/packages/api/src/features/resume/service.test.ts@@ -155,6 +155,7 @@ const createResumeRow = (data: ResumeData, updatedAt = new Date()) => ({slug: "resume",tags: [],data,+ aiOperationIds: [],isPublic: false,isLocked: false,updatedAt,@@ -164,7 +165,10 @@ const createResumeRow = (data: ResumeData, updatedAt = new Date()) => ({const createRestoreHarness = (currentData: ResumeData, restoredData: ResumeData) => {const currentRow = createResumeRow(currentData);dbMock.select.mockReturnValueOnce(createSelectChain([currentRow]));- versionHistoryMock.getVersion.mockImplementationOnce(async () => ({ data: parseStoredResumeData(restoredData) }));+ versionHistoryMock.getVersion.mockImplementationOnce(async () => ({+ data: parseStoredResumeData(restoredData),+ aiOperationIds: [],+ }));const lockedSelect = createLockedSelectChain([{diff --git a/packages/api/src/features/resume/service.ts b/packages/api/src/features/resume/service.tsindex e09647ee3..3db6db7bb 100644--- a/packages/api/src/features/resume/service.ts+++ b/packages/api/src/features/resume/service.ts@@ -36,6 +36,7 @@ import {CurrentClientRequired,saveProposalApplications,} from "../agent/proposal-applications";+import { assertAiOperations, readAiUsage } from "../ai/usage";import { adoptEmbeddedLetters } from "../cover-letters/embedded";import { idInUse, lockUser } from "../documents/ownership";import { enqueueStorageCleanup, reportStorageCleanupSummary, runStorageCleanup } from "../storage/cleanup";@@ -191,6 +192,7 @@ const resumeColumns = {slug: schema.resume.slug,tags: schema.resume.tags,data: schema.resume.data,+ aiOperationIds: schema.resume.aiOperationIds,isPublic: schema.resume.isPublic,isLocked: schema.resume.isLocked,showDownloadButtons: schema.resume.showDownloadButtons,@@ -199,6 +201,16 @@ const resumeColumns = {hasPassword: sql<boolean>`${schema.resume.password} IS NOT NULL`,};+const RESUME_AI_ACTIONS = [+ "import-pdf",+ "import-docx",+ "writing-review",+ "improve",+ "assistant",+ "career-chat",+ "tailor-resume",+] as const;+async function applyResumePatchTx(client: DbOrTx,input: {@@ -286,6 +298,7 @@ async function applyResumePatchTx(resumeId: resume.id,userId: input.userId,data: resume.data,+ aiOperationIds: resume.aiOperationIds,kind: "ai",});@@ -553,6 +566,7 @@ export const resumeService = {resumeId: input.resumeId,userId: input.userId,data: current.data,+ aiOperationIds: current.aiOperationIds,kind: "named",name: input.name,});@@ -574,6 +588,7 @@ export const resumeService = {resumeId: input.resumeId,userId: input.userId,data: current.data,+ aiOperationIds: current.aiOperationIds,kind: "before-restore",...(restoredName ? { name: restoredName } : {}),});@@ -582,6 +597,8 @@ export const resumeService = {id: input.resumeId,userId: input.userId,data: version.data,+ aiOperationIds: version.aiOperationIds,+ expectedUpdatedAt: current.updatedAt,skipAutoSnapshot: true,...(input.proposalSafety ? { proposalSafety: input.proposalSafety } : {}),});@@ -590,6 +607,7 @@ export const resumeService = {resumeId: input.resumeId,userId: input.userId,data: updated.data,+ aiOperationIds: updated.aiOperationIds,kind: "restored",...(restoredName ? { name: restoredName } : {}),});@@ -638,7 +656,11 @@ export const resumeService = {if (!resume) throw new ORPCError("NOT_FOUND");// Clients get the current data shape (structured dates and their text in step), not the stored one.- return { ...resume, data: parseStoredResumeData(resume.data) };+ return {+ ...resume,+ data: parseStoredResumeData(resume.data),+ aiUsage: await readAiUsage(input.userId, resume.aiOperationIds, reader),+ };},getBySlug: async (input: {@@ -698,6 +720,7 @@ export const resumeService = {tags: string[];locale: Locale;data?: ResumeData;+ aiOperationIds?: string[];/** The first version in History: "created", or "import" for an imported document. */origin?: "created" | "import";/** The name follows the headline until someone renames the resume. */@@ -719,6 +742,8 @@ export const resumeService = {const slug =input.slug ?? (await findFreeSlug(db, input.userId, input.autoName ? DEFAULT_SLUG_STEM : input.name));await db.transaction(async (tx) => {+ if (input.aiOperationIds?.length) await lockUser(tx, input.userId);+ await assertAiOperations(input.userId, input.aiOperationIds ?? [], RESUME_AI_ACTIONS, tx);// The resume row comes first: letters an imported file carried are saved linked to it.const stored = structuredClone(data);detachEmbeddedLetters(stored);@@ -731,15 +756,20 @@ export const resumeService = {tags: input.tags,userId: input.userId,data: stored,+ aiOperationIds: [...new Set(input.aiOperationIds ?? [])],});await adoptEmbeddedLetters(tx, { userId: input.userId, resumeId: id, resumeName: input.name, data });await input.inTransaction?.(tx, id);});// History is never empty: its first entry is where the document came from (best effort).- await writeVersion(db, { resumeId: id, userId: input.userId, data, kind: input.origin ?? "created" }).catch(- (error: unknown) => console.warn("Failed to save the first version:", error),- );+ await writeVersion(db, {+ resumeId: id,+ userId: input.userId,+ data,+ aiOperationIds: input.aiOperationIds ?? [],+ kind: input.origin ?? "created",+ }).catch((error: unknown) => console.warn("Failed to save the first version:", error));await notifyResumeUpdated({type: "resume.updated",@@ -774,6 +804,7 @@ export const resumeService = {slug?: string;tags?: string[];data?: ResumeData;+ aiOperationIds?: string[];isPublic?: boolean;showDownloadButtons?: boolean;allowWordDownload?: boolean;@@ -787,8 +818,11 @@ export const resumeService = {proposalApplications?: ProposalApplications;proposalSafety?: "v1";}) => {+ if (input.aiOperationIds !== undefined && input.data === undefined)+ throw new ORPCError("BAD_REQUEST", { message: "Save AI request sources with the reviewed resume content." });const resume = await db.transaction(async (tx) => {+ if (input.aiOperationIds?.length) await lockUser(tx, input.userId);const [existing] = await tx.select({name: schema.resume.name,@@ -807,6 +841,8 @@ export const resumeService = {if (!existing) throw new ORPCError("NOT_FOUND");if (existing.isLocked) throw new ORPCError("RESUME_LOCKED", { status: 403 });assertResumeVersion(existing.updatedAt, input.expectedUpdatedAt);+ if (input.aiOperationIds !== undefined)+ await assertAiOperations(input.userId, input.aiOperationIds, RESUME_AI_ACTIONS, tx);if (input.data !== undefined)await assertCurrentClientWrite(tx, {userId: input.userId,@@ -858,6 +894,7 @@ export const resumeService = {...(input.slug !== undefined || input.isPublic === true ? { autoSlug: false } : {}),...(input.tags !== undefined ? { tags: input.tags } : {}),...(normalizedData ? { data: normalizedData } : {}),+ ...(input.aiOperationIds !== undefined ? { aiOperationIds: [...new Set(input.aiOperationIds)] } : {}),...(input.isPublic !== undefined ? { isPublic: input.isPublic } : {}),...(input.showDownloadButtons !== undefined ? { showDownloadButtons: input.showDownloadButtons } : {}),...(input.allowWordDownload !== undefined ? { allowWordDownload: input.allowWordDownload } : {}),@@ -927,6 +964,7 @@ export const resumeService = {resumeId: resume.id,userId: input.userId,data: resume.data,+ aiOperationIds: resume.aiOperationIds,...(input.sessionId ? { sessionId: input.sessionId } : {}),});}@@ -939,7 +977,7 @@ export const resumeService = {mutation: "update",});- return resume;+ return { ...resume, aiUsage: await readAiUsage(input.userId, resume.aiOperationIds) };},patch: async (input: {diff --git a/packages/api/src/features/resume/version-history.test.ts b/packages/api/src/features/resume/version-history.test.tsindex aa4f261a3..53630697c 100644--- a/packages/api/src/features/resume/version-history.test.ts+++ b/packages/api/src/features/resume/version-history.test.ts@@ -39,7 +39,13 @@ beforeEach(() => {describe("saveSessionVersion", () => {const save = (sessionId?: string) =>- saveSessionVersion({ resumeId: "r1", userId: "u1", data: data(), ...(sessionId ? { sessionId } : {}) });+ saveSessionVersion({+ resumeId: "r1",+ userId: "u1",+ data: data(),+ aiOperationIds: ["source-operation"],+ ...(sessionId ? { sessionId } : {}),+ });it("refreshes the session's one version after two minutes instead of adding another", async () => {dbMock.select.mockReturnValueOnce(selectChain([{ id: "v1", createdAt: new Date(Date.now() - 3 * MINUTE) }]));@@ -47,7 +53,9 @@ describe("saveSessionVersion", () => {await save("visit");- expect(set).toHaveBeenCalledWith(expect.objectContaining({ createdAt: expect.any(Date) }));+ expect(set).toHaveBeenCalledWith(+ expect.objectContaining({ createdAt: expect.any(Date), aiOperationIds: ["source-operation"] }),+ );expect(dbMock.insert).not.toHaveBeenCalled();});@@ -57,7 +65,9 @@ describe("saveSessionVersion", () => {await save("visit");- expect(values).toHaveBeenCalledWith(expect.objectContaining({ kind: "auto", sessionId: "visit" }));+ expect(values).toHaveBeenCalledWith(+ expect.objectContaining({ kind: "auto", sessionId: "visit", aiOperationIds: ["source-operation"] }),+ );});it("without a session, adds an autosave only when the newest version is two minutes old", async () => {diff --git a/packages/api/src/features/resume/version-history.ts b/packages/api/src/features/resume/version-history.tsindex 480955eb1..bd677720c 100644--- a/packages/api/src/features/resume/version-history.ts+++ b/packages/api/src/features/resume/version-history.ts@@ -2,6 +2,7 @@ import type { DbOrTx } from "@reactive-resume/db/client";import type { ResumeVersionKind } from "@reactive-resume/db/schema";import type { ResumeData } from "@reactive-resume/schema/resume/data";import * as schema from "@reactive-resume/db/schema";+import { readAiUsage } from "../ai/usage";import { createVersionHistory } from "../documents/version-history";import { parseStoredResumeData, parseWritableResumeData } from "./resume-data-validation";@@ -20,25 +21,43 @@ const ids = ({ resumeId, ...rest }: Owned) => ({ ...rest, documentId: resumeId }export const writeVersion = (client: DbOrTx,- input: Owned & { data: ResumeData; kind: ResumeVersionKind; name?: string; sessionId?: string },+ input: Owned & {+ data: ResumeData;+ aiOperationIds: string[];+ kind: ResumeVersionKind;+ name?: string;+ sessionId?: string;+ },) =>history.write(client, {documentId: input.resumeId,userId: input.userId,data: input.data,+ aiOperationIds: input.aiOperationIds,kind: input.kind,name: input.name,sessionId: input.sessionId,});-export const saveSessionVersion = (input: Owned & { data: ResumeData; sessionId?: string }) =>- history.saveSession({ ...ids(input), data: input.data, sessionId: input.sessionId });+export const saveSessionVersion = (input: Owned & { data: ResumeData; aiOperationIds: string[]; sessionId?: string }) =>+ history.saveSession({+ ...ids(input),+ data: input.data,+ aiOperationIds: input.aiOperationIds,+ sessionId: input.sessionId,+ });export const listVersions = (input: Owned) => history.list(ids(input));export const getVersion = async (input: Owned & { versionId: string }) => {const version = await history.get({ ...ids(input), versionId: input.versionId });- return { ...version, data: parseStoredResumeData(version.data) };+ const aiOperationIds = version.aiOperationIds ?? [];+ return {+ ...version,+ data: parseStoredResumeData(version.data),+ aiOperationIds,+ aiUsage: await readAiUsage(input.userId, aiOperationIds),+ };};export const renameVersion = (input: Owned & { versionId: string; name: string }) =>diff --git a/packages/db/src/schema/resume.ts b/packages/db/src/schema/resume.tsindex d197e6daf..42fc56b01 100644--- a/packages/db/src/schema/resume.ts+++ b/packages/db/src/schema/resume.ts@@ -18,6 +18,8 @@ export const resume = pg.pgTable(name: pg.text("name").notNull(),slug: pg.text("slug").notNull(),tags: pg.text("tags").array().notNull().default([]),+ // Private request lineage stays outside portable resume data.+ aiOperationIds: pg.text("ai_operation_ids").array().notNull().default([]),isPublic: pg.boolean("is_public").notNull().default(false),showDownloadButtons: pg.boolean("show_download_buttons").notNull().default(true),allowWordDownload: pg.boolean("allow_word_download").notNull().default(false),@@ -111,6 +113,7 @@ export const resumeVersion = pg.pgTable(.references(() => user.id, { onDelete: "cascade" }),// Snapshot of the resume data. A session's autosave is refreshed while the session lasts; the rest are immutable.data: pg.jsonb("data").notNull().$type<ResumeData>(),+ aiOperationIds: pg.text("ai_operation_ids").array().notNull().default([]),kind: pg.text("kind", { enum: RESUME_VERSION_KINDS }).notNull().default("auto"),// The user's name for a `named` version.name: pg.text("name"),diff --git a/tests/e2e/fixtures/ai-stub.ts b/tests/e2e/fixtures/ai-stub.tsindex 71853da65..80f2feb3f 100644--- a/tests/e2e/fixtures/ai-stub.ts+++ b/tests/e2e/fixtures/ai-stub.ts@@ -1,6 +1,7 @@import type { IncomingMessage, ServerResponse } from "node:http";import type { AddressInfo } from "node:net";import { createServer } from "node:http";+import { defaultResumeData } from "@reactive-resume/schema/resume/default";/*** A scripted OpenAI-compatible provider for the assistant spec. It answers the connection test, and plays a small@@ -343,6 +344,13 @@ function handle(request: IncomingMessage, response: ServerResponse, requests: Chtext(message.content).includes("Check the posting's requirements"),);const prompt = parsed.messages.map((message) => text(message.content)).join("\n");+ const importedResume = prompt.includes("Use the following JSON as a template")+ ? {+ ...defaultResumeData,+ basics: { ...defaultResumeData.basics, name: "Avery Morgan", headline: "Fictional reliability engineer" },+ summary: { ...defaultResumeData.summary, content: "<p>Built fictional reliable services.</p>" },+ }+ : null;const structured =parsed.model === "offer-fixture" && prompt.includes("Read the employer's message")? REPLY@@ -428,7 +436,14 @@ function handle(request: IncomingMessage, response: ServerResponse, requests: Chchoices: [{index: 0,- message: { role: "assistant", content: structured ? JSON.stringify(structured) : content },+ message: {+ role: "assistant",+ content: importedResume+ ? JSON.stringify(importedResume)+ : structured+ ? JSON.stringify(structured)+ : content,+ },finish_reason: "stop",},],diff --git a/tests/e2e/specs/ai-usage.spec.ts b/tests/e2e/specs/ai-usage.spec.tsindex 19058a90a..7cbdce0b2 100644--- a/tests/e2e/specs/ai-usage.spec.ts+++ b/tests/e2e/specs/ai-usage.spec.ts@@ -1,3 +1,5 @@+import { readFile } from "node:fs/promises";+import { strToU8, zipSync } from "fflate";import { approveLocalStubOperations } from "../fixtures/ai-consent";import { startAiStub } from "../fixtures/ai-stub";import { expect, test } from "../fixtures/test";@@ -13,6 +15,80 @@ test.afterAll(async () => {await stub?.close();});+test("reviewed Word import retains its original request source in resume History after connection deletion", async ({+ authPage: page,+}, testInfo) => {+ test.skip(process.env.FLAG_ALLOW_UNSAFE_AI_BASE_URL !== "true", "Needs isolated local AI stub permission");+ test.setTimeout(90_000);+ await page.setViewportSize({ width: 1440, height: 1000 });+ await approveLocalStubOperations(page);+ const created = await page.request.post("/api/openapi/ai-providers", {+ data: {+ label: "Fictional Import AI",+ provider: "openai-compatible",+ model: "import-main",+ fastModel: "import-fast",+ baseURL: stub.baseURL,+ apiKey: "stub-key",+ },+ });+ await expect(created).toBeOK();+ const { id: providerId } = await created.json();+ await expect(await page.request.post(`/api/openapi/ai-providers/${providerId}/test`)).toBeOK();+ const before = stub.requests.length;+ const buffer = Buffer.from(+ zipSync({+ "word/document.xml": strToU8(+ '<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"><w:body><w:p><w:r><w:t>Avery Morgan</w:t></w:r></w:p><w:p><w:r><w:t>Built fictional reliable services.</w:t></w:r></w:p></w:body></w:document>',+ ),+ }),+ );+ await page.goto("/dashboard");+ await page.getByRole("button", { name: "New", exact: true }).click();+ const dialog = page.getByRole("dialog");+ await dialog.getByLabel("Choose a file to import").setInputFiles({+ name: "fictional.docx",+ mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",+ buffer,+ });+ await dialog.getByRole("button", { name: "Read with AI", exact: true }).click();+ await expect(dialog.getByRole("heading", { name: "Check what was found" })).toBeVisible();+ const resumesBefore = await (await page.request.get("/api/openapi/resumes")).json();+ expect(resumesBefore).toEqual([]);+ await dialog.getByRole("button", { name: "Create resume", exact: true }).click();+ await dialog.getByRole("button", { name: "Open in editor", exact: true }).click();+ await page.waitForURL(/\/builder\/.+/);+ const id = page.url().split("/builder/")[1]?.split("?")[0];+ const saved = await (await page.request.get(`/api/openapi/resumes/${id}`)).json();+ expect(saved.aiOperationIds).toHaveLength(1);+ expect(saved.aiUsage.requests).toBe(1);+ expect(saved.data).not.toHaveProperty("aiOperationIds");+ await expect(await page.request.delete(`/api/openapi/ai-providers/${providerId}`)).toBeOK();+ await page.reload();+ await page.getByRole("button", { name: "History", exact: true }).click();+ const history = page.getByRole("dialog", { name: "Download & history" });+ await expect(history.getByText("AI request attempts: 1", { exact: true })).toBeVisible();+ await expect(+ history.getByText("Fictional Import AI · openai-compatible · import-fast", { exact: true }),+ ).toBeVisible();+ await history.getByRole("button", { name: /Imported/ }).click();+ await expect(history.getByText("AI request attempts: 1", { exact: true })).toBeVisible();+ expect(stub.requests.length - before).toBe(1);+ await history.screenshot({ path: testInfo.outputPath("resume-import-ai-provenance.png"), animations: "disabled" });+ await history.getByRole("tab", { name: "Download", exact: true }).click();+ await history.getByRole("radio", { name: /^JSON/ }).click();+ const downloading = page.waitForEvent("download");+ await history.getByRole("button", { name: "Download JSON", exact: true }).click();+ const download = await downloading;+ const path = testInfo.outputPath("fictional-portable-resume.json");+ await download.saveAs(path);+ const portable = JSON.parse(await readFile(path, "utf8"));+ expect(portable).not.toHaveProperty("aiOperationIds");+ expect(portable).not.toHaveProperty("aiUsage");+ expect(JSON.stringify(portable)).not.toContain("Fictional Import AI");+ expect(stub.requests.length - before).toBe(1);+});+test("letter Improve reviews an owned posting paragraph through the canonical service", async ({authPage: page,}, testInfo) => {