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
fix: bind each batch item and recover recorded reminder watermarks
Amruth Pillai13c19efbd5b8
diff --git a/apps/server/src/rpc/handler.ts b/apps/server/src/rpc/handler.tsindex cf6ba3c4a..4edfc6219 100644--- a/apps/server/src/rpc/handler.ts+++ b/apps/server/src/rpc/handler.ts@@ -7,6 +7,21 @@ import { getRequestLocale } from "./locale";const rpcHandler = new RPCHandler(router, {plugins: [new BatchHandlerPlugin(), new RequestHeadersPlugin(), new StrictGetMethodPlugin()],+ // Runs after the batch plugin maps each item and before RequestHeadersPlugin reads the envelope. A batch item may+ // carry its own account expectation; authentication keeps using the envelope, so an item cannot swap the cookie.+ rootInterceptors: [+ (interceptorOptions) => {+ const header = interceptorOptions.request.headers["x-account-id"];+ const accountId = Array.isArray(header) ? header[0] : header;+ return interceptorOptions.next({+ ...interceptorOptions,+ context: {+ ...interceptorOptions.context,+ ...(accountId ? { rpcItemAccountId: accountId } : {}),+ },+ });+ },+ ],interceptors: [onError((error) => {// Signed-out or expired callers are routine; their 401 still reaches the client.diff --git a/apps/web/src/libs/orpc/account-binding.integration.test.ts b/apps/web/src/libs/orpc/account-binding.integration.test.tsnew file mode 100644index 000000000..870bae7be--- /dev/null+++ b/apps/web/src/libs/orpc/account-binding.integration.test.ts@@ -0,0 +1,257 @@+import { afterAll, beforeAll, describe, expect, it, vi } from "vite-plus/test";+// @vitest-environment node++/**+ * Real transport + real HTTP regression for account-bound writes. Runs only when RX106_BINDING_APP_URL points at a+ * disposable server whose database is DATABASE_URL; every account is synthetic and deleted afterwards.+ */+const appUrl = process.env.RX106_BINDING_APP_URL;++describe.skipIf(!appUrl)("account binding over the real transport", () => {+ const tag = `rx106bind${Date.now().toString(36)}`;+ const realFetch = globalThis.fetch.bind(globalThis);+ const alicePayload = {+ targetRoles: ["Alice private role"],+ priorities: "Alice private priorities",+ memoryMode: "ask",+ };+ const bobPayload = {+ targetRoles: ["Bob role"],+ priorities: "Bob priorities",+ memoryMode: "ask",+ };+ const requests: Array<{ url: string; headers: Headers }> = [];+ let alice = { id: "", cookie: "" };+ let bob = { id: "", cookie: "" };++ const cookieFrom = (response: Response) =>+ (response.headers.getSetCookie?.() ?? []).map((cookie) => cookie.split(";")[0]).join("; ");++ const signUp = async (label: string) => {+ const email = `${tag}-${label}@example.test`;+ const username = `${tag}_${label}`.slice(0, 64);+ const response = await realFetch(`${appUrl}/api/auth/sign-up/email`, {+ method: "POST",+ headers: { origin: appUrl ?? "", referer: `${appUrl}/auth/register`, "content-type": "application/json" },+ body: JSON.stringify({+ name: `Fictional ${label}`,+ email,+ password: "Password123!",+ username,+ displayUsername: username,+ callbackURL: "/dashboard",+ }),+ });+ expect(response.ok, await response.text()).toBe(true);+ const cookie = cookieFrom(response);+ const session = await realFetch(`${appUrl}/api/auth/get-session`, { headers: { cookie } }).then((r) => r.json());+ return { id: session.user.id as string, cookie };+ };++ const profile = async (cookie: string) =>+ realFetch(`${appUrl}/api/openapi/career/profile`, { headers: { cookie } }).then((r) => r.json());++ beforeAll(async () => {+ vi.stubGlobal("window", { location: { origin: appUrl } });+ alice = await signUp("alice");+ bob = await signUp("bob");+ expect(alice.id).not.toBe(bob.id);+ const initial = await profile(alice.cookie);+ const seeded = await realFetch(`${appUrl}/api/openapi/career/profile`, {+ method: "PUT",+ headers: { cookie: alice.cookie, "content-type": "application/json" },+ body: JSON.stringify({ ...initial, ...alicePayload }),+ });+ expect(seeded.ok).toBe(true);+ expect((await profile(bob.cookie)).targetRoles).toEqual([]);+ }, 60_000);++ afterAll(async () => {+ vi.unstubAllGlobals();+ // Delete each synthetic account through the real endpoint so no test dependency on the database driver is needed.+ for (const account of [alice, bob].filter((entry) => entry.id)) {+ const response = await realFetch(`${appUrl}/api/rpc/auth/deleteAccount`, {+ method: "POST",+ headers: { origin: appUrl ?? "", cookie: account.cookie, "content-type": "application/json" },+ body: JSON.stringify({ json: {} }),+ });+ if (!response.ok) console.warn("[account-binding] synthetic account cleanup failed", response.status);+ }+ });++ const installTransport = (cookie: string) => {+ vi.stubGlobal("fetch", async (input: RequestInfo | URL, init?: RequestInit) => {+ const request = new Request(input, init);+ request.headers.set("cookie", cookie);+ requests.push({ url: request.url, headers: new Headers(request.headers) });+ return realFetch(request);+ });+ };++ it("refuses a single call bound to another account", async () => {+ const { setAccountScope } = await import("@/libs/auth/account-scope");+ const { client } = await import("./client");+ setAccountScope(bob.id);+ installTransport(bob.cookie);+ await expect(+ client.career.saveProfile(alicePayload as never, { context: { accountId: alice.id } }),+ ).rejects.toMatchObject({ status: 409 });+ expect((await profile(bob.cookie)).targetRoles).toEqual([]);+ const sent = requests.at(-1);+ expect(sent?.headers.get("x-account-id")).toBe(alice.id);+ expect(sent?.headers.get("x-orpc-batch")).toBeNull();+ });++ it("refuses an unbound call made while the page still belongs to the previous account", async () => {+ const { setAccountScope } = await import("@/libs/auth/account-scope");+ const { client } = await import("./client");+ installTransport(bob.cookie);+ setAccountScope(alice.id);+ // No explicit context: the transport captures the page's stale account when the call starts.+ await expect(client.career.saveProfile(alicePayload as never)).rejects.toMatchObject({ status: 409 });+ expect((await profile(bob.cookie)).targetRoles).toEqual([]);+ });++ it.each([+ { first: "bound", why: "bound call first" },+ { first: "unbound", why: "unbound call first" },+ ])("never lets a mixed batch write one account's profile into another ($why)", async ({ first }) => {+ const { setAccountScope } = await import("@/libs/auth/account-scope");+ const { client } = await import("./client");+ requests.length = 0;+ setAccountScope(bob.id);+ installTransport(bob.cookie);+ const bound = () => client.career.saveProfile(alicePayload as never, { context: { accountId: alice.id } });+ const unbound = () =>+ client.career.saveFact({+ applicationId: null,+ text: `Bob fact ${first}`,+ category: "accomplishment",+ source: { kind: "manual", id: first, quote: first },+ } as never);+ const boundFirst = first === "bound";+ const settled = await Promise.allSettled(boundFirst ? [bound(), unbound()] : [unbound(), bound()]);+ const boundResult = settled[boundFirst ? 0 : 1];+ const unboundResult = settled[boundFirst ? 1 : 0];+ expect(unboundResult?.status).toBe("fulfilled");+ expect(boundResult?.status).toBe("rejected");+ expect((boundResult as PromiseRejectedResult).reason).toMatchObject({ status: 409 });+ expect((await profile(bob.cookie)).targetRoles).toEqual([]);+ const boundRequest = requests.find((request) => request.headers.get("x-account-id") === alice.id);+ expect(boundRequest?.headers.get("x-orpc-batch")).toBeNull();+ expect(boundRequest?.url).not.toContain("__batch__");+ });++ it("evaluates every batch item against its own binding, not the envelope", async () => {+ const item = (accountId: string | null, payload: Record<string, unknown>) => ({+ url: `${appUrl}/api/rpc/career/saveProfile`,+ headers: {+ "content-type": "application/json",+ ...(accountId ? { "x-account-id": accountId } : {}),+ },+ body: { json: payload },+ });+ const runBatch = async (envelope: string | null, items: ReturnType<typeof item>[]) => {+ const response = await realFetch(`${appUrl}/api/rpc/__batch__`, {+ method: "POST",+ headers: {+ origin: appUrl ?? "",+ "content-type": "application/json",+ "x-orpc-batch": "streaming",+ cookie: bob.cookie,+ ...(envelope ? { "x-account-id": envelope } : {}),+ },+ body: JSON.stringify(items),+ });+ const text = await response.text();+ const statuses = [...text.matchAll(/data: (\{.*\})/g)]+ .map((match) => JSON.parse(match[1] as string) as { index: number; status: number })+ .sort((left, right) => left.index - right.index)+ .map((entry) => entry.status);+ return { status: response.status, statuses, text };+ };+ const baseline = async () => {+ const response = await realFetch(`${appUrl}/api/openapi/career/profile`, {+ method: "PUT",+ headers: { cookie: bob.cookie, "content-type": "application/json" },+ body: JSON.stringify({ ...bobPayload, priorities: "baseline" }),+ });+ expect(response.ok).toBe(true);+ };++ const bobWrite = { ...bobPayload, priorities: "batch-bob" };+ const aliceWrite = { ...alicePayload, priorities: "batch-alice" };+ const cases = [+ {+ name: "envelope bob, alice then bob",+ envelope: bob.id,+ items: [item(alice.id, aliceWrite), item(bob.id, bobWrite)],+ statuses: [409, 200],+ stored: "batch-bob",+ },+ {+ name: "envelope bob, bob then alice",+ envelope: bob.id,+ items: [item(bob.id, bobWrite), item(alice.id, aliceWrite)],+ statuses: [200, 409],+ stored: "batch-bob",+ },+ {+ name: "envelope alice, bob item",+ envelope: alice.id,+ items: [item(bob.id, bobWrite)],+ statuses: [409],+ stored: "baseline",+ },+ {+ name: "no envelope, stale alice item",+ envelope: null,+ items: [item(alice.id, aliceWrite)],+ statuses: [409],+ stored: "baseline",+ },+ {+ name: "no envelope, two bob items",+ envelope: null,+ items: [item(bob.id, bobWrite), item(bob.id, bobWrite)],+ statuses: [200, 200],+ stored: "batch-bob",+ },+ {+ name: "no envelope, headerless item",+ envelope: null,+ items: [item(null, bobWrite)],+ statuses: [200],+ stored: "batch-bob",+ },+ ];+ for (const entry of cases) {+ await baseline();+ const result = await runBatch(entry.envelope, entry.items);+ expect(result.status, entry.name).toBe(207);+ expect(result.statuses, entry.name).toEqual(entry.statuses);+ expect((await profile(bob.cookie)).priorities, entry.name).toBe(entry.stored);+ expect((await profile(alice.cookie)).targetRoles, entry.name).toEqual(["Alice private role"]);+ }+ }, 60_000);++ it("allows a call bound to the signed-in account", async () => {+ const { setAccountScope } = await import("@/libs/auth/account-scope");+ const { client } = await import("./client");+ setAccountScope(bob.id);+ installTransport(bob.cookie);+ await client.career.saveProfile(bobPayload as never, { context: { accountId: bob.id } });+ expect(await profile(bob.cookie)).toMatchObject({ targetRoles: ["Bob role"] });+ });++ it("keeps headerless legacy clients working", async () => {+ const { setAccountScope } = await import("@/libs/auth/account-scope");+ const { client } = await import("./client");+ requests.length = 0;+ setAccountScope(null);+ installTransport(bob.cookie);+ await client.career.saveProfile(alicePayload as never);+ expect((await profile(bob.cookie)).targetRoles).toEqual(["Alice private role"]);+ expect(requests.at(-1)?.headers.get("x-account-id")).toBeNull();+ });+});diff --git a/apps/web/src/libs/orpc/client.test.ts b/apps/web/src/libs/orpc/client.test.tsindex 58494ebdd..423c40845 100644--- a/apps/web/src/libs/orpc/client.test.ts+++ b/apps/web/src/libs/orpc/client.test.ts@@ -31,4 +31,23 @@ describe("RPC account binding", () => {await pending;expect(sentAccount()).toBe("carol");});++ it("never batches an explicitly bound call with another account's call", async () => {+ const { setAccountScope } = await import("@/libs/auth/account-scope");+ const { client } = await import("./client");+ setAccountScope("bob");+ await Promise.allSettled([+ client.career.saveProfile({} as never, { context: { accountId: "alice" } }),+ client.career.saveFact({} as never),+ ]);+ const sent = fetchMock.mock.calls.map(([input, init]) => ({+ url: String(input),+ headers: new Headers(init?.headers),+ }));+ expect(sent).toHaveLength(2);+ expect(sent.map((call) => call.headers.get("x-account-id")).sort()).toEqual(["alice", "bob"]);+ const bound = sent.find((call) => call.headers.get("x-account-id") === "alice");+ expect(bound?.headers.get("x-orpc-batch")).toBeNull();+ expect(bound?.url).not.toContain("__batch__");+ });});diff --git a/apps/web/src/libs/orpc/client.ts b/apps/web/src/libs/orpc/client.tsindex e5f91b12a..d840b96da 100644--- a/apps/web/src/libs/orpc/client.ts+++ b/apps/web/src/libs/orpc/client.ts@@ -9,9 +9,10 @@ import { getAccountId } from "@/libs/auth/account-scope";/*** The account a call belongs to. Captured when the call starts (before any await, batching or body staging), so a- * session switch during dispatch cannot relabel a payload that was built for the previous account.+ * session switch during dispatch cannot relabel a payload that was built for the previous account. `bound` marks a call+ * whose caller named its account explicitly: those never batch, so a mixed batch can never hide one under another.*/-export type ClientContext = { accountId?: string };+export type ClientContext = { accountId?: string; bound?: boolean };const getRpcUrl = () => `${window.location.origin}/api/rpc`;@@ -27,14 +28,20 @@ export const client: RouterClient<typeof router, ClientContext> = createORPCClienew BatchLinkPlugin<ClientContext>({mode: "streaming",groups: [{ condition: () => true, context: {} }],+ // An explicitly bound call must keep its own envelope; batching could merge it with another account.+ exclude: (options) => options.context.bound === true,}),],interceptors: [// Runs before the request is encoded, so the header carries the account this call was made for, not whichever// account the tab discovered while the request was being prepared.(options) => {+ const bound = options.context.accountId !== undefined;const accountId = options.context.accountId ?? getAccountId() ?? undefined;- return options.next({ ...options, context: accountId ? { ...options.context, accountId } : options.context });+ return options.next({+ ...options,+ context: accountId ? { ...options.context, accountId, ...(bound ? { bound: true } : {}) } : options.context,+ });},onError((error) => {if (error instanceof DOMException && error.name === "AbortError") return;@@ -51,8 +58,12 @@ export const streamClient: RouterClient<typeof router, ClientContext> = createORheaders: accountHeaders,interceptors: [(options) => {+ const bound = options.context.accountId !== undefined;const accountId = options.context.accountId ?? getAccountId() ?? undefined;- return options.next({ ...options, context: accountId ? { ...options.context, accountId } : options.context });+ return options.next({+ ...options,+ context: accountId ? { ...options.context, accountId, ...(bound ? { bound: true } : {}) } : options.context,+ });},onError((error) => {if (error instanceof DOMException && error.name === "AbortError") return;diff --git a/migrations/20261101090000_rx106_follow_up_watermark_recovery/migration.sql b/migrations/20261101090000_rx106_follow_up_watermark_recovery/migration.sqlnew file mode 100644index 000000000..4634a55a9--- /dev/null+++ b/migrations/20261101090000_rx106_follow_up_watermark_recovery/migration.sql@@ -0,0 +1,28 @@+-- Forward correction for installations that recorded an earlier RX-106 owner migration (name-based Drizzle history+-- does not re-run edited SQL). It derives a follow-up watermark from the completed job history, so fresh installs and+-- already-correct rows are unchanged. A completed job must match the projected occurrence: same calendar day for a+-- logical-day follow-up, the same instant for an exact-time follow-up. A watermark that marks a different instant as+-- delivered is cleared so that occurrence can still run. Pending queued/running/failed work is never touched.+WITH occurrence AS (+ SELECT s.id,s.last_queued_at,s.next_run_at,+ CASE WHEN a.follow_up_date_only THEN ((a.follow_up_at AT TIME ZONE 'UTC')::date + time '09:00') AT TIME ZONE s.timezone ELSE a.follow_up_at END AS at,+ a.follow_up_date_only AS date_only,j.status AS job_status,j.due_at AS completed_at+ FROM career_schedule s+ JOIN application a ON a.id=s.application_id AND a.user_id=s.user_id+ LEFT JOIN LATERAL (SELECT status,due_at FROM career_job WHERE schedule_id=s.id ORDER BY created_at DESC,id DESC LIMIT 1) j ON true+ WHERE s.kind='follow-up' AND a.follow_up_at IS NOT NULL+ AND s.next_run_at=CASE WHEN a.follow_up_date_only THEN ((a.follow_up_at AT TIME ZONE 'UTC')::date + time '09:00') AT TIME ZONE s.timezone ELSE a.follow_up_at END+)+UPDATE career_schedule s SET last_queued_at=CASE+ WHEN o.job_status='completed' AND (+ (o.date_only AND (o.at AT TIME ZONE s.timezone)::date=(o.completed_at AT TIME ZONE s.timezone)::date)+ OR (NOT o.date_only AND o.at=o.completed_at)+ ) THEN o.at+ ELSE NULL END+FROM occurrence o+WHERE s.id=o.id AND o.job_status='completed'+AND s.last_queued_at IS DISTINCT FROM CASE+ WHEN (o.date_only AND (o.at AT TIME ZONE s.timezone)::date=(o.completed_at AT TIME ZONE s.timezone)::date)+ OR (NOT o.date_only AND o.at=o.completed_at)+ THEN o.at+ ELSE NULL END;diff --git a/migrations/20261101090000_rx106_follow_up_watermark_recovery/snapshot.json b/migrations/20261101090000_rx106_follow_up_watermark_recovery/snapshot.jsonnew file mode 100644index 000000000..d32fad33c--- /dev/null+++ b/migrations/20261101090000_rx106_follow_up_watermark_recovery/snapshot.json@@ -0,0 +1,11172 @@+{+ "id": "49d48212-055e-4545-b070-a37b845efb84",+ "prevIds": [+ "23cfb6a1-55a2-4b75-95c4-391893dd2e7b"+ ],+ "version": "8",+ "dialect": "postgres",+ "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": "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": "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"+ },+ {+ "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": "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": "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": "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": 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": 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": 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": 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": 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": 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": "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": "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": 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": "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": "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": "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": "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": "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": 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": "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": "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"+ },+ {+ "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+ }+ ],+ "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": "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": [+ "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": "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": [+ "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"+ },+ {+ "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": "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": [+ "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"+ },+ {+ "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": []+}diff --git a/packages/api/src/context.test.ts b/packages/api/src/context.test.tsindex 097636c6c..caaaba1d1 100644--- a/packages/api/src/context.test.ts+++ b/packages/api/src/context.test.ts@@ -250,3 +250,53 @@ describe("account scope binding", () => {await expect(operation({ "x-account-id": "alice" }, "GET")(undefined)).resolves.toBe("executed");});});++describe("per-item account binding", () => {+ const authentication = {+ user: { id: "bob" },+ method: "session" as const,+ permissions: ["read", "write", "delete"] as const,+ } as unknown as RequestAuthentication;+ const itemOperation = (+ envelope: string | undefined,+ item: string | undefined,+ method: "GET" | "POST" = "POST",+ handler = vi.fn(() => "executed"),+ ) =>+ createProcedureClient(protectedProcedure.route({ method }).handler(handler), {+ context: {+ locale: "en-US" as const,+ reqHeaders: new Headers(envelope ? { "x-account-id": envelope } : {}),+ ...(item ? { rpcItemAccountId: item } : {}),+ authentication,+ },+ });++ it.each([+ { envelope: "bob", item: "alice", why: "a mixed batch item keeps its own old account" },+ { envelope: "alice", item: "bob", why: "the envelope and the item disagree" },+ { envelope: undefined, item: "alice", why: "only the item is bound and it is stale" },+ ])("refuses a write when $why", async ({ envelope, item }) => {+ reset();+ const handler = vi.fn(() => "executed");+ await expect(itemOperation(envelope, item, "POST", handler)(undefined)).rejects.toMatchObject({+ code: "CONFLICT",+ });+ expect(handler).not.toHaveBeenCalled();+ });++ it.each([+ { envelope: "bob", item: "bob" },+ { envelope: "bob", item: undefined },+ { envelope: undefined, item: "bob" },+ { envelope: undefined, item: undefined },+ ])("allows a write whose known bindings all match ($envelope / $item)", async ({ envelope, item }) => {+ reset();+ await expect(itemOperation(envelope, item)(undefined)).resolves.toBe("executed");+ });++ it("does not block a read item carrying another page's account", async () => {+ reset();+ await expect(itemOperation("bob", "alice", "GET")(undefined)).resolves.toBe("executed");+ });+});diff --git a/packages/api/src/context.ts b/packages/api/src/context.tsindex 44f7e7bc3..61be83697 100644--- a/packages/api/src/context.ts+++ b/packages/api/src/context.ts@@ -22,6 +22,8 @@ interface ORPCContext {trustedClient?: string;/** Set only by a server adapter after authenticating this request. */authentication?: RequestAuthentication | null;+ /** The account expectation of this batch item (or whole request), mapped by the RPC adapter. */+ rpcItemAccountId?: string;}const TRUSTED_ORIGINS = getTrustedOrigins(env.APP_URL);@@ -149,8 +151,12 @@ export const protectedProcedure = publicProcedureconst permission = requiredPermission(procedure["~orpc"].route);// A page sends the account it was rendered for. If a cookie changed after that page loaded (another tab signed// out or signed in), a queued autosave must fail instead of writing the old account's text into the new one.- const scope = context.reqHeaders.get("x-account-id");- if (scope && scope !== context.user.id && permission !== "read")+ // Every known binding must agree with the authenticated user: the request envelope (cookie-level) and the+ // per-item binding a batch item may carry. A batch cannot relabel one item with another account's live scope.+ const bindings = [context.reqHeaders.get("x-account-id"), context.rpcItemAccountId].filter(+ (value): value is string => Boolean(value),+ );+ if (permission !== "read" && bindings.some((accountId) => accountId !== context.user?.id))throw new ORPCError("CONFLICT", {message: "This page belongs to a different account now. Reload and try again.",});diff --git a/packages/api/src/features/career/jobs.integration.test.ts b/packages/api/src/features/career/jobs.integration.test.tsindex 0f0647289..d66cd2ea1 100644--- a/packages/api/src/features/career/jobs.integration.test.ts+++ b/packages/api/src/features/career/jobs.integration.test.ts@@ -989,6 +989,276 @@ describe.skipIf(!databaseUrl)("durable career scheduling", () => {await admin.query(`DROP SCHEMA IF EXISTS ${isolated} CASCADE`);}});+ // Exact owner migrations shipped by the earlier repair rounds. Installations that recorded one of these names never+ // re-run the edited SQL, so the forward correction must repair the state they leave behind.+ const V2_OWNER_SQL = `ALTER TABLE "application" ADD COLUMN "follow_up_date_only" boolean DEFAULT false NOT NULL;+--> statement-breakpoint+-- Preserve legacy raw dates; discriminator keeps their calendar day separate from exact reminder times.+UPDATE application SET follow_up_date_only=true WHERE follow_up_at IS NOT NULL AND follow_up_at=date_trunc('day',follow_up_at AT TIME ZONE 'UTC') AT TIME ZONE 'UTC';+--> statement-breakpoint+-- Adopt the newest existing reminder only when the application has no follow-up.+-- Existing application dates/notes stay authoritative. Duplicate delivery rows are consolidated.+WITH newest AS (+ SELECT DISTINCT ON (s.user_id, s.application_id) s.* FROM career_schedule s+ JOIN application a ON a.id=s.application_id AND a.user_id=s.user_id+ WHERE s.kind='follow-up'+ ORDER BY s.user_id,s.application_id,s.updated_at DESC,s.id DESC+)+UPDATE application a SET follow_up_at=n.next_run_at, follow_up_note=COALESCE(a.follow_up_note,NULLIF(n.query,''))+FROM newest n WHERE a.id=n.application_id AND a.user_id=n.user_id AND a.follow_up_at IS NULL;+--> statement-breakpoint+-- Keep duplicate reminders and job history in account exports, but only the newest row delivers.+UPDATE career_schedule s SET enabled=false FROM career_schedule newer+WHERE s.kind='follow-up' AND newer.kind='follow-up' AND s.user_id=newer.user_id+AND s.application_id=newer.application_id AND (s.updated_at,s.id)<(newer.updated_at,newer.id);+--> statement-breakpoint+UPDATE career_job j SET status='canceled',lease=NULL,lease_until=NULL+FROM career_schedule s JOIN application a ON a.id=s.application_id AND a.user_id=s.user_id+WHERE j.schedule_id=s.id AND s.kind='follow-up' AND j.status IN ('queued','running')+AND ((CASE WHEN a.follow_up_date_only THEN ((a.follow_up_at AT TIME ZONE 'UTC')::date + time '09:00') AT TIME ZONE s.timezone ELSE a.follow_up_at END) IS DISTINCT FROM s.next_run_at OR NOT s.enabled);+--> statement-breakpoint+UPDATE career_schedule s SET next_run_at=CASE WHEN a.follow_up_date_only THEN ((a.follow_up_at AT TIME ZONE 'UTC')::date + time '09:00') AT TIME ZONE s.timezone ELSE a.follow_up_at END,query=COALESCE(a.follow_up_note,''),+last_queued_at=CASE WHEN s.next_run_at=CASE WHEN a.follow_up_date_only THEN ((a.follow_up_at AT TIME ZONE 'UTC')::date + time '09:00') AT TIME ZONE s.timezone ELSE a.follow_up_at END THEN s.last_queued_at ELSE NULL END+FROM application a WHERE s.application_id=a.id AND s.user_id=a.user_id AND s.kind='follow-up' AND a.follow_up_at IS NOT NULL+AND NOT EXISTS(SELECT 1 FROM career_schedule newer WHERE newer.user_id=s.user_id AND newer.application_id=s.application_id AND newer.kind='follow-up' AND (newer.updated_at,newer.id)>(s.updated_at,s.id));+--> statement-breakpoint+INSERT INTO career_schedule(id,user_id,application_id,kind,query,timezone,enabled,next_run_at)+SELECT 'follow-up:'||a.id,a.user_id,a.id,'follow-up',COALESCE(a.follow_up_note,''),u.timezone,true,CASE WHEN a.follow_up_date_only THEN ((a.follow_up_at AT TIME ZONE 'UTC')::date + time '09:00') AT TIME ZONE u.timezone ELSE a.follow_up_at END+FROM application a JOIN "user" u ON u.id=a.user_id WHERE a.follow_up_at IS NOT NULL+AND NOT EXISTS(SELECT 1 FROM career_schedule s WHERE s.user_id=a.user_id AND s.application_id=a.id AND s.kind='follow-up');+`;+ const V3_OWNER_SQL = `ALTER TABLE "application" ADD COLUMN "follow_up_date_only" boolean DEFAULT false NOT NULL;+--> statement-breakpoint+-- Preserve legacy raw dates; discriminator keeps their calendar day separate from exact reminder times.+UPDATE application SET follow_up_date_only=true WHERE follow_up_at IS NOT NULL AND follow_up_at=date_trunc('day',follow_up_at AT TIME ZONE 'UTC') AT TIME ZONE 'UTC';+--> statement-breakpoint+-- Adopt the newest existing reminder only when the application has no follow-up.+-- Existing application dates/notes stay authoritative. Duplicate delivery rows are consolidated.+WITH newest AS (+ SELECT DISTINCT ON (s.user_id, s.application_id) s.* FROM career_schedule s+ JOIN application a ON a.id=s.application_id AND a.user_id=s.user_id+ WHERE s.kind='follow-up'+ ORDER BY s.user_id,s.application_id,s.updated_at DESC,s.id DESC+)+UPDATE application a SET follow_up_at=n.next_run_at, follow_up_note=COALESCE(a.follow_up_note,NULLIF(n.query,''))+FROM newest n WHERE a.id=n.application_id AND a.user_id=n.user_id AND a.follow_up_at IS NULL;+--> statement-breakpoint+-- Keep duplicate reminders and job history in account exports, but only the newest row delivers.+UPDATE career_schedule s SET enabled=false FROM career_schedule newer+WHERE s.kind='follow-up' AND newer.kind='follow-up' AND s.user_id=newer.user_id+AND s.application_id=newer.application_id AND (s.updated_at,s.id)<(newer.updated_at,newer.id);+--> statement-breakpoint+UPDATE career_job j SET status='canceled',lease=NULL,lease_until=NULL+FROM career_schedule s JOIN application a ON a.id=s.application_id AND a.user_id=s.user_id+WHERE j.schedule_id=s.id AND s.kind='follow-up' AND j.status IN ('queued','running')+AND ((CASE WHEN a.follow_up_date_only THEN ((a.follow_up_at AT TIME ZONE 'UTC')::date + time '09:00') AT TIME ZONE s.timezone ELSE a.follow_up_at END) IS DISTINCT FROM s.next_run_at OR NOT s.enabled);+--> statement-breakpoint+-- Move the delivery index to the projected clock. A completed occurrence on the same logical day stays delivered: its+-- watermark follows the projected instant, so the scheduler does not treat the new time as an undelivered occurrence.+-- Completed history keeps its original due time; only pending queued/running work moves to the projected clock.+WITH projected AS (+ SELECT s.id,s.last_queued_at,s.next_run_at AS current_at,+ CASE WHEN a.follow_up_date_only THEN ((a.follow_up_at AT TIME ZONE 'UTC')::date + time '09:00') AT TIME ZONE s.timezone ELSE a.follow_up_at END AS at,+ COALESCE((SELECT j.status='completed' FROM career_job j WHERE j.schedule_id=s.id ORDER BY j.created_at DESC,j.id DESC LIMIT 1),false) AS completed,+ a.follow_up_note+ FROM career_schedule s JOIN application a ON a.id=s.application_id AND a.user_id=s.user_id+ WHERE s.kind='follow-up' AND a.follow_up_at IS NOT NULL+ AND NOT EXISTS(SELECT 1 FROM career_schedule newer WHERE newer.user_id=s.user_id AND newer.application_id=s.application_id AND newer.kind='follow-up' AND (newer.updated_at,newer.id)>(s.updated_at,s.id))+)+UPDATE career_schedule s SET next_run_at=p.at,query=COALESCE(p.follow_up_note,''),+last_queued_at=CASE+ WHEN p.at IS NOT DISTINCT FROM p.current_at THEN s.last_queued_at+ WHEN s.last_queued_at IS NOT NULL AND p.completed+ AND (p.at AT TIME ZONE s.timezone)::date=(s.last_queued_at AT TIME ZONE s.timezone)::date+ THEN p.at+ ELSE NULL END+FROM projected p WHERE s.id=p.id;+--> statement-breakpoint+INSERT INTO career_schedule(id,user_id,application_id,kind,query,timezone,enabled,next_run_at)+SELECT 'follow-up:'||a.id,a.user_id,a.id,'follow-up',COALESCE(a.follow_up_note,''),u.timezone,true,CASE WHEN a.follow_up_date_only THEN ((a.follow_up_at AT TIME ZONE 'UTC')::date + time '09:00') AT TIME ZONE u.timezone ELSE a.follow_up_at END+FROM application a JOIN "user" u ON u.id=a.user_id WHERE a.follow_up_at IS NOT NULL+AND NOT EXISTS(SELECT 1 FROM career_schedule s WHERE s.user_id=a.user_id AND s.application_id=a.id AND s.kind='follow-up');+`;++ it("forward correction repairs installations recorded with an earlier owner migration", async () => {+ const schemas: string[] = [];+ const pools: Pool[] = [];+ const normalized = async (pool: Pool) => {+ const snapshot = {+ schedules: (+ (await pool.query("SELECT id,next_run_at,last_queued_at,enabled,query FROM career_schedule ORDER BY id"))+ .rows as Array<Record<string, unknown>>+ ).map((row) => ({+ id: row.id,+ next: (row.next_run_at as Date).toISOString(),+ queued: row.last_queued_at === null ? null : (row.last_queued_at as Date).toISOString(),+ enabled: row.enabled,+ query: row.query,+ })),+ jobs: [] as Array<Record<string, unknown>>,+ notifications: [] as Array<Record<string, unknown>>,+ };+ const jobRows = (+ (await pool.query("SELECT id,schedule_id,due_at,status FROM career_job ORDER BY due_at,id")).rows as Array<+ Record<string, unknown>+ >+ ).map((row) => ({+ id: row.id,+ scheduleId: row.schedule_id,+ dueAt: (row.due_at as Date).toISOString(),+ status: row.status,+ }));+ // New occurrences get fresh job ids; compare them by schedule instead of by the random id.+ const jobKey = new Map(+ jobRows.map((row) => [row.id, String(row.id).startsWith("job-") ? row.id : `${row.scheduleId}:new`]),+ );+ snapshot.jobs = jobRows.map((row) => ({ ...row, id: jobKey.get(row.id) }));+ snapshot.notifications = (+ (await pool.query("SELECT key,application_id FROM career_notification ORDER BY key")).rows as Array<+ Record<string, unknown>+ >+ ).map((row) => ({ key: jobKey.get(row.key as string) ?? row.key, applicationId: row.application_id }));+ return snapshot;+ };+ const recordedUpgrade = async (label: string, ownerSql: string | null) => {+ const schema = `rx106_recovery_${label}_${randomUUID().replaceAll("-", "")}`;+ await admin.query(`CREATE SCHEMA ${schema}`);+ schemas.push(schema);+ const pool = new Pool({+ connectionString: databaseUrl,+ max: 1,+ options: `-c search_path=${schema} -c statement_timeout=10000`,+ });+ pools.push(pool);+ const migrations = new URL("../../../../../migrations/", import.meta.url);+ const directories = (await readdir(migrations, { withFileTypes: true }))+ .filter((entry) => entry.isDirectory() && /^\d+_/.test(entry.name))+ .map((entry) => entry.name)+ .sort();+ const owner = "20261031160926_rx106_follow_up_owner";+ const clock = "20261031174650_rx106_follow_up_clock";+ const recovery = "20261101090000_rx106_follow_up_watermark_recovery";+ const apply = async (name: string) => {+ const file = new URL(`${name}/migration.sql`, migrations);+ await pool.query((await readFile(file, "utf8")).replaceAll('"public".', ""));+ };+ for (const directory of directories) {+ if (directory === owner) break;+ await apply(directory);+ }+ await pool.query(`+ INSERT INTO "user"(id,name,email,username,display_username,timezone,email_verified)+ VALUES('upgrade','Fictional Upgrade','[email protected]','upgrade','upgrade','UTC',true);+ INSERT INTO application(id,user_id,company,role,status,follow_up_at,follow_up_note) VALUES+ ('same-day','upgrade','Same Day Labs','Engineer','applied','2026-10-30T00:00:00Z','Already delivered'),+ ('explicit-later','upgrade','Explicit Later Labs','Engineer','applied','2026-10-30T16:00:00Z','Distinct exact time'),+ ('pending','upgrade','Pending Labs','Engineer','applied','2026-10-30T00:00:00Z','Still pending'),+ ('explicit-same','upgrade','Explicit Same Labs','Engineer','applied','2026-10-30T08:00:00Z','Already delivered');+ INSERT INTO career_schedule(id,user_id,application_id,kind,query,timezone,enabled,next_run_at,last_queued_at) VALUES+ ('same-day','upgrade','same-day','follow-up','Already delivered','UTC',true,'2026-10-30T08:00:00Z','2026-10-30T08:00:00Z'),+ ('explicit-later','upgrade','explicit-later','follow-up','Distinct exact time','UTC',true,'2026-10-30T08:00:00Z','2026-10-30T08:00:00Z'),+ ('pending','upgrade','pending','follow-up','Still pending','UTC',true,'2026-10-30T08:00:00Z','2026-10-30T08:00:00Z'),+ ('explicit-same','upgrade','explicit-same','follow-up','Already delivered','UTC',true,'2026-10-30T08:00:00Z','2026-10-30T08:00:00Z');+ INSERT INTO career_job(id,user_id,schedule_id,due_at,status,attempts) VALUES+ ('job-same-day','upgrade','same-day','2026-10-30T08:00:00Z','completed',1),+ ('job-explicit-later','upgrade','explicit-later','2026-10-30T08:00:00Z','completed',1),+ ('job-pending','upgrade','pending','2026-10-30T08:00:00Z','queued',0),+ ('job-explicit-same','upgrade','explicit-same','2026-10-30T08:00:00Z','completed',1);+ INSERT INTO career_notification(id,user_id,application_id,key,notice) VALUES+ ('notice-same-day','upgrade','same-day','job-same-day','{"type":"followup","company":"Same Day Labs","role":"Engineer","note":"Already delivered"}'),+ ('notice-explicit-later','upgrade','explicit-later','job-explicit-later','{"type":"followup","company":"Explicit Later Labs","role":"Engineer","note":"Distinct exact time"}'),+ ('notice-explicit-same','upgrade','explicit-same','job-explicit-same','{"type":"followup","company":"Explicit Same Labs","role":"Engineer","note":"Already delivered"}');+ `);+ if (ownerSql) await pool.query(ownerSql);+ else await apply(owner);+ await apply(clock);+ const beforeRecovery = await normalized(pool);+ await apply(recovery);+ const afterRecovery = await normalized(pool);+ const oldDb = fixture.db;+ fixture.db = drizzle({ client: pool });+ try {+ // One worker serves one job per account per tick.+ await run();+ await run();+ await run();+ } finally {+ fixture.db = oldDb;+ }+ return { beforeRecovery, afterRecovery, afterScheduler: await normalized(pool) };+ };+ try {+ const v2 = await recordedUpgrade("v2", V2_OWNER_SQL);+ const v3 = await recordedUpgrade("v3", V3_OWNER_SQL);+ const fresh = await recordedUpgrade("fresh", null);++ // The old chains really leave the defects behind.+ expect(v2.beforeRecovery.schedules.find((row) => row.id === "same-day")?.queued).toBeNull();+ expect(v3.beforeRecovery.schedules.find((row) => row.id === "explicit-later")?.queued).toBe(+ "2026-10-30T16:00:00.000Z",+ );+ expect(v3.beforeRecovery.schedules.find((row) => row.id === "same-day")?.queued).toBe("2026-10-30T09:00:00.000Z");++ // The correction converges every recorded history on the fresh-chain state before and after real delivery.+ expect(v2.afterRecovery).toEqual(fresh.afterRecovery);+ expect(v3.afterRecovery).toEqual(fresh.afterRecovery);+ expect(v2.afterScheduler).toEqual(fresh.afterScheduler);+ expect(v3.afterScheduler).toEqual(fresh.afterScheduler);++ const after = fresh.afterScheduler;+ expect(after.schedules).toEqual([+ {+ id: "explicit-later",+ next: "2026-10-30T16:00:00.000Z",+ queued: "2026-10-30T16:00:00.000Z",+ enabled: true,+ query: "Distinct exact time",+ },+ {+ id: "explicit-same",+ next: "2026-10-30T08:00:00.000Z",+ queued: "2026-10-30T08:00:00.000Z",+ enabled: true,+ query: "Already delivered",+ },+ {+ id: "pending",+ next: "2026-10-30T09:00:00.000Z",+ queued: "2026-10-30T09:00:00.000Z",+ enabled: true,+ query: "Still pending",+ },+ {+ id: "same-day",+ next: "2026-10-30T09:00:00.000Z",+ queued: "2026-10-30T09:00:00.000Z",+ enabled: true,+ query: "Already delivered",+ },+ ]);+ expect(after.jobs.filter((row) => row.scheduleId === "explicit-later")).toEqual([+ {+ id: "job-explicit-later",+ scheduleId: "explicit-later",+ dueAt: "2026-10-30T08:00:00.000Z",+ status: "completed",+ },+ {+ id: expect.any(String),+ scheduleId: "explicit-later",+ dueAt: "2026-10-30T16:00:00.000Z",+ status: "completed",+ },+ ]);+ expect(after.jobs.filter((row) => row.scheduleId === "same-day")).toHaveLength(1);+ expect(after.jobs.filter((row) => row.scheduleId === "explicit-same")).toHaveLength(1);+ expect(after.notifications).toHaveLength(5);+ } finally {+ await Promise.all(pools.map((pool) => pool.end()));+ for (const schema of schemas) await admin.query(`DROP SCHEMA IF EXISTS ${schema} CASCADE`);+ }+ });+it("distinguishes old-client dates from exact midnight reminders and preserves notes-only timestamps", async () => {const { applicationService } = await import("../applications/service");await getDb().update(tables.user).set({ timezone: "Asia/Tokyo" }).where(eq(tables.user.id, "alice"));