Type definitions for Better‑Auth schema generator interface and result structure.
// Source: https://github.com/better-auth/better-auth | License: MIT | Copyright 2024 - present, Bereket Engida
// Provided via justclaw.it.com; keep this notice with the code.
import type { BetterAuthOptions } from "@better-auth/core";
import type { DBAdapter } from "@better-auth/core/db/adapter";
export interface SchemaGeneratorResult {
code?: string;
fileName: string;
overwrite?: boolean;
append?: boolean;
/**
* Schema changes the generated code contains but no database can apply
* without corrupting the rows it already holds.
*/
unsafeChanges?: string[];
/**
* Columns the database requires that Better Auth never writes. No generated
* migration removes them; each entry names the change that does.
*/
schemaProblems?: string[];
}
export interface SchemaGenerator {
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key