import { Transaction } from "@platform-modules/db";
//#region src/schema.d.ts
/** Serializable, recursively bounded field definition/value payload. */
type FieldStorageValue = string | number | boolean | null | readonly FieldStorageValue[] | {
  readonly [key: string]: FieldStorageValue;
};
type FieldsDefinitionOrigin = "code" | "db" | "import";
type FieldKey = string;
type FieldPath = readonly (string | number)[];
type ScalarChoice = string | number;
interface SafePattern {
  readonly source: string;
  readonly flags?: string;
}
type LocationOperator = "eq" | "neq" | "in" | "notIn" | "contains";
type LocationValue = string | number | boolean | readonly (string | number)[];
interface LocationRule {
  readonly parameter: string;
  readonly operator: LocationOperator;
  readonly value: LocationValue;
}
type LocationRuleGroups = readonly (readonly LocationRule[])[];
type ConditionalRule = {
  readonly fieldPath: FieldPath;
  readonly operator: "eq" | "neq";
  readonly value: string | number | boolean | null;
  readonly quantifier?: "any" | "all";
} | {
  readonly fieldPath: FieldPath;
  readonly operator: "contains" | "notContains";
  readonly value: string | number;
  readonly quantifier?: "any" | "all";
} | {
  readonly fieldPath: FieldPath;
  readonly operator: "gt" | "gte" | "lt" | "lte";
  readonly value: number;
  readonly quantifier?: "any" | "all";
} | {
  readonly fieldPath: FieldPath;
  readonly operator: "empty" | "notEmpty";
  readonly quantifier?: "any" | "all";
} | {
  readonly fieldPath: FieldPath;
  readonly operator: "matches";
  readonly value: SafePattern;
  readonly quantifier?: "any" | "all";
};
type ConditionalRuleGroups = readonly (readonly ConditionalRule[])[];
interface WrapperSettings {
  readonly width?: number;
  readonly className?: string;
  readonly data?: Readonly<Record<string, string>>;
}
interface PresentationSettings {
  readonly text?: string;
  readonly open?: boolean;
  readonly endpoint?: boolean;
}
interface TextSettings {
  readonly placeholder?: string;
  readonly prepend?: string;
  readonly append?: string;
  readonly maxLength?: number;
  readonly pattern?: SafePattern;
}
interface TextareaSettings extends TextSettings {
  readonly rows?: number;
  readonly newline: "preserve" | "br" | "paragraph";
}
interface NumberSettings {
  readonly min?: number;
  readonly max?: number;
  readonly step?: number;
  readonly integer?: boolean;
  readonly prepend?: string;
  readonly append?: string;
}
interface UrlSettings extends TextSettings {
  readonly schemes: readonly string[];
  readonly allowRelative?: boolean;
}
interface PasswordSettings {
  readonly hasherKey: string;
  readonly minLength?: number;
  readonly maxLength?: number;
}
interface BooleanSettings {
  readonly style?: "switch" | "checkbox";
  readonly onLabel?: string;
  readonly offLabel?: string;
}
interface ChoiceSettings {
  readonly choices: Readonly<Record<string, string>>;
  readonly multiple?: boolean;
  readonly allowNull?: boolean;
  readonly allowCustom?: boolean;
  readonly min?: number;
  readonly max?: number;
  readonly searchable?: boolean;
  readonly orientation?: "vertical" | "horizontal";
}
interface RichTextSettings {
  readonly toolbar?: string;
  readonly media?: boolean;
  readonly tabs?: readonly ("visual" | "source")[];
  readonly delayedInit?: boolean;
}
interface EmbedSettings {
  readonly providers?: readonly string[];
  readonly width?: number;
  readonly height?: number;
}
interface LinkSettings {
  readonly schemes: readonly string[];
  readonly targets?: readonly ("_self" | "_blank")[];
}
interface MediaSettings {
  readonly mimeTypes?: readonly string[];
  readonly minBytes?: number;
  readonly maxBytes?: number;
  readonly source?: "all" | "uploadedToEntity";
  readonly return: "ref" | "id" | "url";
}
interface ImageMediaSettings extends MediaSettings {
  readonly minWidth?: number;
  readonly maxWidth?: number;
  readonly minHeight?: number;
  readonly maxHeight?: number;
}
interface GallerySettings extends ImageMediaSettings {
  readonly min?: number;
  readonly max?: number;
  readonly previewSize?: string;
}
interface EntitySettings {
  readonly entityTypes?: readonly string[];
  readonly statuses?: readonly string[];
  readonly taxonomies?: Readonly<Record<string, readonly string[]>>;
  readonly return: "ref" | "id" | "object";
}
interface RelationshipSettings extends EntitySettings {
  readonly min?: number;
  readonly max?: number;
  readonly bidirectional?: {
    readonly targetFieldKey: string;
  };
}
interface TaxonomySettings {
  readonly taxonomies: readonly string[];
  readonly multiple?: boolean;
  readonly allowCreate?: boolean;
  readonly saveTerms?: boolean;
  readonly loadTerms?: boolean;
  readonly return: "ref" | "id" | "object";
}
interface UserSettings {
  readonly roles?: readonly string[];
  readonly multiple?: boolean;
  readonly return: "ref" | "id" | "object";
}
interface DateSettings {
  readonly inputFormat: string;
  readonly displayFormat: string;
  readonly returnFormat: string;
  readonly firstWeekday?: number;
}
interface DateTimeSettings extends DateSettings {
  readonly timezone: "site" | "user" | "utc";
}
interface TimeSettings {
  readonly inputFormat: string;
  readonly displayFormat: string;
  readonly returnFormat: string;
}
interface ColorSettings {
  readonly alpha?: boolean;
  readonly palette?: readonly string[];
}
interface IconSettings {
  readonly sets?: readonly string[];
  readonly allowNull?: boolean;
}
interface MapSettings {
  readonly providerKey: string;
  readonly center?: {
    readonly latitude: number;
    readonly longitude: number;
  };
  readonly zoom?: number;
  readonly height?: number;
}
interface GroupSettings {
  readonly fields: readonly AnyFieldDefinition[];
  readonly layout?: "block" | "table" | "row";
}
interface RepeaterSettings extends GroupSettings {
  readonly min?: number;
  readonly max?: number;
  readonly collapsedBy?: FieldKey;
  readonly pagination?: {
    readonly pageSize: number;
  };
}
interface FlexibleLayout {
  readonly key: string;
  readonly name: string;
  readonly label: string;
  readonly fields: readonly AnyFieldDefinition[];
}
interface FlexibleSettings {
  readonly layouts: readonly FlexibleLayout[];
  readonly min?: number;
  readonly max?: number;
}
interface CloneSettings {
  readonly sourceGroupKeys?: readonly string[];
  readonly sourceFieldKeys?: readonly string[];
  readonly display?: "seamless" | "group";
  readonly prefixNames?: boolean;
}
type FieldType = "text" | "textarea" | "number" | "range" | "email" | "url" | "password" | "boolean" | "select" | "checkbox" | "radio" | "buttonGroup" | "richText" | "oembed" | "link" | "message" | "image" | "file" | "gallery" | "entity" | "entityLink" | "relationship" | "taxonomy" | "user" | "date" | "dateTime" | "time" | "color" | "icon" | "map" | "accordion" | "tab" | "group" | "repeater" | "flexible" | "clone";
type SettingsFor<T extends FieldType> = T extends "textarea" ? TextareaSettings : T extends "number" | "range" ? NumberSettings : T extends "url" ? UrlSettings : T extends "password" ? PasswordSettings : T extends "boolean" ? BooleanSettings : T extends "select" | "checkbox" | "radio" | "buttonGroup" ? ChoiceSettings : T extends "richText" ? RichTextSettings : T extends "oembed" ? EmbedSettings : T extends "link" ? LinkSettings : T extends "image" ? ImageMediaSettings : T extends "file" ? MediaSettings : T extends "gallery" ? GallerySettings : T extends "entity" | "entityLink" ? EntitySettings : T extends "relationship" ? RelationshipSettings : T extends "taxonomy" ? TaxonomySettings : T extends "user" ? UserSettings : T extends "date" ? DateSettings : T extends "dateTime" ? DateTimeSettings : T extends "time" ? TimeSettings : T extends "color" ? ColorSettings : T extends "icon" ? IconSettings : T extends "map" ? MapSettings : T extends "group" ? GroupSettings : T extends "repeater" ? RepeaterSettings : T extends "flexible" ? FlexibleSettings : T extends "clone" ? CloneSettings : T extends "message" | "accordion" | "tab" ? PresentationSettings : TextSettings;
interface BaseSnapshotField<T extends FieldType> {
  readonly key: FieldKey;
  readonly name: string;
  readonly label: string;
  readonly type: T;
  readonly instructions?: string;
  readonly required?: boolean;
  readonly defaultValue?: unknown;
  readonly settings: SettingsFor<T>;
  readonly wrapper?: WrapperSettings;
  readonly conditionalLogic?: ConditionalRuleGroups;
  readonly disabled?: boolean;
  readonly readOnly?: boolean;
  readonly presentation?: {
    readonly labelPlacement?: "top" | "left";
    readonly instructionPlacement?: "label" | "field";
  };
}
type FieldDefinition<T extends FieldType = FieldType> = T extends FieldType ? T extends "password" | "message" | "accordion" | "tab" ? Omit<BaseSnapshotField<T>, "defaultValue"> & {
  readonly defaultValue?: never;
} : BaseSnapshotField<T> : never;
type AnyFieldDefinition = FieldDefinition;
interface FieldGroup {
  readonly key: string;
  readonly title: string;
  readonly fields: readonly AnyFieldDefinition[];
  readonly location: LocationRuleGroups;
  readonly order?: number;
  readonly position?: "normal" | "side" | "afterTitle";
  readonly style?: "default" | "seamless";
  readonly labelPlacement?: "top" | "left";
  readonly instructionPlacement?: "label" | "field";
  readonly hideOnScreen?: readonly string[];
  readonly active: boolean;
  readonly description?: string;
}
interface NormalizedFieldsRegistryRecord {
  readonly key: string;
  readonly origin: FieldsDefinitionOrigin;
  readonly version: number;
  readonly revision: number;
  readonly active: boolean;
  readonly canonicalHash: string;
  readonly definition: FieldGroup;
  readonly shadowedDbVersion?: number;
}
interface FieldDefinitionVersion {
  readonly groupKey: string;
  readonly revision: number;
  readonly canonicalHash: string;
  readonly definition: FieldGroup;
  readonly createdAt: Date;
  readonly origin: FieldsDefinitionOrigin;
}
type FieldDefinitionVersionErrorCode = "invalid-definition-version";
declare class FieldDefinitionVersionError extends Error {
  readonly field: string;
  readonly detail: string;
  readonly name = "FieldDefinitionVersionError";
  readonly code: FieldDefinitionVersionErrorCode;
  constructor(field: string, detail: string);
}
declare function isFieldDefinitionVersionError(error: unknown): error is FieldDefinitionVersionError;
/** Parses one built-in field definition through the same bounded trust boundary as immutable group snapshots. */
declare function parseFieldDefinition(value: unknown): AnyFieldDefinition;
/** Parses one complete field-group definition at an untrusted runtime boundary. */
declare function parseFieldGroupDefinition(value: unknown): FieldGroup;
/** Parses a persisted/imported immutable snapshot before hashing or storage. */
declare function parseFieldDefinitionVersion(value: unknown): Promise<FieldDefinitionVersion>;
/** Computes the canonical immutable FieldGroup digest with the web-standard SHA-256 API. */
declare function canonicalFieldGroupHash(definition: FieldGroup): Promise<string>;
/**
 * Final recursive-node contract. Task 7 adds storage/migration for it; this
 * task only freezes the identity/path/lane shape while flat EAV remains read.
 */
interface FieldValueNodeRow {
  readonly nodeId: string;
  readonly entityType: string;
  readonly entityId: string;
  readonly groupKey: string;
  readonly definitionRevision: number;
  readonly fieldKey: string;
  readonly path: string;
  readonly parentNodeId: string | null;
  readonly rowId: string | null;
  readonly layoutKey: string | null;
  readonly nodeKind: "group" | "repeaterRow" | "flexibleRow" | "leaf";
  readonly ordinal: number;
  readonly isNull: boolean;
  readonly valueText: string | null;
  readonly valueNumber: number | null;
  readonly valueBoolean: boolean | null;
  readonly valueDateTime: string | null;
  readonly valueRef: string | null;
  readonly valueJson: string | null;
}
/** The existing flat EAV rows read before the structural migration. */
interface FlatFieldValue {
  readonly id: string;
  readonly entityType: string;
  readonly entityId: string;
  readonly groupId: string;
  readonly fieldKey: string;
  readonly ordinal: number;
  readonly valueText: string | null;
  readonly valueNum: string | null;
  readonly valueBool: boolean | null;
  readonly valueDate: Date | null;
  readonly refType: string | null;
  readonly refId: string | null;
  readonly refMeta: FieldStorageValue | null;
  readonly createdAt: Date;
  readonly updatedAt: Date;
}
type FieldsDefinitionKind = "group" | "options" | "block";
type FieldsMigrationAdapter = "d1" | "postgres";
type FieldsMigrationPhase = "inventory" | "definitions" | "dual-write" | "backfill" | "parity" | "enforced" | "reverse";
/** Current immutable group registry state; historical bytes live in fieldDefinitionVersions. */
declare const fieldGroupDefinitions: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "field_group_definitions";
  schema: undefined;
  columns: {
    key: import("drizzle-orm/pg-core").PgColumn<{
      name: "key";
      tableName: "field_group_definitions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: true;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    origin: import("drizzle-orm/pg-core").PgColumn<{
      name: "origin";
      tableName: "field_group_definitions";
      dataType: "string";
      columnType: "PgText";
      data: FieldsDefinitionOrigin;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldsDefinitionOrigin;
    }>;
    version: import("drizzle-orm/pg-core").PgColumn<{
      name: "version";
      tableName: "field_group_definitions";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    active: import("drizzle-orm/pg-core").PgColumn<{
      name: "active";
      tableName: "field_group_definitions";
      dataType: "boolean";
      columnType: "PgBoolean";
      data: boolean;
      driverParam: boolean;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    currentRevision: import("drizzle-orm/pg-core").PgColumn<{
      name: "current_revision";
      tableName: "field_group_definitions";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
      name: "canonical_hash";
      tableName: "field_group_definitions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    definition: import("drizzle-orm/pg-core").PgColumn<{
      name: "definition";
      tableName: "field_group_definitions";
      dataType: "json";
      columnType: "PgJsonb";
      data: FieldGroup;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldGroup;
    }>;
    shadowedDbVersion: import("drizzle-orm/pg-core").PgColumn<{
      name: "shadowed_db_version";
      tableName: "field_group_definitions";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "host_session_id";
      tableName: "field_group_definitions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "field_group_definitions";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    updatedAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "updated_at";
      tableName: "field_group_definitions";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
declare const fieldDefinitionVersions: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "field_definition_versions";
  schema: undefined;
  columns: {
    groupKey: import("drizzle-orm/pg-core").PgColumn<{
      name: "group_key";
      tableName: "field_definition_versions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    revision: import("drizzle-orm/pg-core").PgColumn<{
      name: "revision";
      tableName: "field_definition_versions";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
      name: "canonical_hash";
      tableName: "field_definition_versions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    definition: import("drizzle-orm/pg-core").PgColumn<{
      name: "definition";
      tableName: "field_definition_versions";
      dataType: "json";
      columnType: "PgJsonb";
      data: FieldGroup;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldGroup;
    }>;
    origin: import("drizzle-orm/pg-core").PgColumn<{
      name: "origin";
      tableName: "field_definition_versions";
      dataType: "string";
      columnType: "PgText";
      data: FieldsDefinitionOrigin;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldsDefinitionOrigin;
    }>;
    hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "host_session_id";
      tableName: "field_definition_versions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "field_definition_versions";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
interface OptionsPageDefinitionSnapshot {
  readonly key: string;
  readonly title: string;
  readonly menuTitle?: string;
  readonly parentKey?: string;
  readonly readCapability: string;
  readonly writeCapability: string;
  readonly manageCapability: string;
  readonly position?: number;
  readonly icon?: string;
  readonly redirectToFirstChild?: boolean;
  readonly autoload?: boolean;
}
declare const fieldOptionsDefinitions: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "field_options_definitions";
  schema: undefined;
  columns: {
    key: import("drizzle-orm/pg-core").PgColumn<{
      name: "key";
      tableName: "field_options_definitions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: true;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    origin: import("drizzle-orm/pg-core").PgColumn<{
      name: "origin";
      tableName: "field_options_definitions";
      dataType: "string";
      columnType: "PgText";
      data: FieldsDefinitionOrigin;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldsDefinitionOrigin;
    }>;
    version: import("drizzle-orm/pg-core").PgColumn<{
      name: "version";
      tableName: "field_options_definitions";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    active: import("drizzle-orm/pg-core").PgColumn<{
      name: "active";
      tableName: "field_options_definitions";
      dataType: "boolean";
      columnType: "PgBoolean";
      data: boolean;
      driverParam: boolean;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    currentRevision: import("drizzle-orm/pg-core").PgColumn<{
      name: "current_revision";
      tableName: "field_options_definitions";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
      name: "canonical_hash";
      tableName: "field_options_definitions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    definition: import("drizzle-orm/pg-core").PgColumn<{
      name: "definition";
      tableName: "field_options_definitions";
      dataType: "json";
      columnType: "PgJsonb";
      data: OptionsPageDefinitionSnapshot;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: OptionsPageDefinitionSnapshot;
    }>;
    shadowedDbVersion: import("drizzle-orm/pg-core").PgColumn<{
      name: "shadowed_db_version";
      tableName: "field_options_definitions";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "host_session_id";
      tableName: "field_options_definitions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "field_options_definitions";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    updatedAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "updated_at";
      tableName: "field_options_definitions";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
declare const fieldOptionsDefinitionVersions: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "field_options_definition_versions";
  schema: undefined;
  columns: {
    optionsKey: import("drizzle-orm/pg-core").PgColumn<{
      name: "options_key";
      tableName: "field_options_definition_versions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    revision: import("drizzle-orm/pg-core").PgColumn<{
      name: "revision";
      tableName: "field_options_definition_versions";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
      name: "canonical_hash";
      tableName: "field_options_definition_versions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    definition: import("drizzle-orm/pg-core").PgColumn<{
      name: "definition";
      tableName: "field_options_definition_versions";
      dataType: "json";
      columnType: "PgJsonb";
      data: OptionsPageDefinitionSnapshot;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: OptionsPageDefinitionSnapshot;
    }>;
    origin: import("drizzle-orm/pg-core").PgColumn<{
      name: "origin";
      tableName: "field_options_definition_versions";
      dataType: "string";
      columnType: "PgText";
      data: FieldsDefinitionOrigin;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldsDefinitionOrigin;
    }>;
    hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "host_session_id";
      tableName: "field_options_definition_versions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "field_options_definition_versions";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
interface FieldBlockDefinitionSnapshot {
  readonly key: string;
  readonly title: string;
  readonly description?: string;
  readonly category?: string;
  readonly icon?: string;
  readonly keywords?: readonly string[];
  readonly fieldGroupKeys: readonly string[];
  readonly mode?: "preview" | "edit" | "auto";
  readonly align?: readonly ("left" | "center" | "right" | "wide" | "full")[];
  readonly supports?: Readonly<{
    anchor?: boolean;
    className?: boolean;
    multiple?: boolean;
    reusable?: boolean;
    innerBlocks?: boolean;
    jsx?: boolean;
  }>;
  readonly parent?: readonly string[];
  readonly ancestor?: readonly string[];
  readonly template?: readonly FieldStorageValue[];
  readonly templateLock?: false | "insert" | "all" | "contentOnly";
}
declare const fieldBlockDefinitions: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "field_block_definitions";
  schema: undefined;
  columns: {
    key: import("drizzle-orm/pg-core").PgColumn<{
      name: "key";
      tableName: "field_block_definitions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: true;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    origin: import("drizzle-orm/pg-core").PgColumn<{
      name: "origin";
      tableName: "field_block_definitions";
      dataType: "string";
      columnType: "PgText";
      data: FieldsDefinitionOrigin;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldsDefinitionOrigin;
    }>;
    version: import("drizzle-orm/pg-core").PgColumn<{
      name: "version";
      tableName: "field_block_definitions";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    active: import("drizzle-orm/pg-core").PgColumn<{
      name: "active";
      tableName: "field_block_definitions";
      dataType: "boolean";
      columnType: "PgBoolean";
      data: boolean;
      driverParam: boolean;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    currentRevision: import("drizzle-orm/pg-core").PgColumn<{
      name: "current_revision";
      tableName: "field_block_definitions";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
      name: "canonical_hash";
      tableName: "field_block_definitions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    definition: import("drizzle-orm/pg-core").PgColumn<{
      name: "definition";
      tableName: "field_block_definitions";
      dataType: "json";
      columnType: "PgJsonb";
      data: FieldBlockDefinitionSnapshot;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldBlockDefinitionSnapshot;
    }>;
    shadowedDbVersion: import("drizzle-orm/pg-core").PgColumn<{
      name: "shadowed_db_version";
      tableName: "field_block_definitions";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "host_session_id";
      tableName: "field_block_definitions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "field_block_definitions";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    updatedAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "updated_at";
      tableName: "field_block_definitions";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
declare const fieldBlockDefinitionVersions: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "field_block_definition_versions";
  schema: undefined;
  columns: {
    blockKey: import("drizzle-orm/pg-core").PgColumn<{
      name: "block_key";
      tableName: "field_block_definition_versions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    revision: import("drizzle-orm/pg-core").PgColumn<{
      name: "revision";
      tableName: "field_block_definition_versions";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
      name: "canonical_hash";
      tableName: "field_block_definition_versions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    definition: import("drizzle-orm/pg-core").PgColumn<{
      name: "definition";
      tableName: "field_block_definition_versions";
      dataType: "json";
      columnType: "PgJsonb";
      data: FieldBlockDefinitionSnapshot;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldBlockDefinitionSnapshot;
    }>;
    origin: import("drizzle-orm/pg-core").PgColumn<{
      name: "origin";
      tableName: "field_block_definition_versions";
      dataType: "string";
      columnType: "PgText";
      data: FieldsDefinitionOrigin;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldsDefinitionOrigin;
    }>;
    hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "host_session_id";
      tableName: "field_block_definition_versions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "field_block_definition_versions";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
interface StoredBlockDocument {
  readonly version: 1;
  readonly roots: readonly FieldStorageValue[];
}
declare const fieldBlockDocuments: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "field_block_documents";
  schema: undefined;
  columns: {
    entityType: import("drizzle-orm/pg-core").PgColumn<{
      name: "entity_type";
      tableName: "field_block_documents";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    entityId: import("drizzle-orm/pg-core").PgColumn<{
      name: "entity_id";
      tableName: "field_block_documents";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    version: import("drizzle-orm/pg-core").PgColumn<{
      name: "version";
      tableName: "field_block_documents";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    document: import("drizzle-orm/pg-core").PgColumn<{
      name: "document";
      tableName: "field_block_documents";
      dataType: "json";
      columnType: "PgJsonb";
      data: StoredBlockDocument;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: StoredBlockDocument;
    }>;
    definitionVersions: import("drizzle-orm/pg-core").PgColumn<{
      name: "definition_versions";
      tableName: "field_block_documents";
      dataType: "json";
      columnType: "PgJsonb";
      data: Readonly<Record<string, number>>;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: Readonly<Record<string, number>>;
    }>;
    parentRevisionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "parent_revision_id";
      tableName: "field_block_documents";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "host_session_id";
      tableName: "field_block_documents";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    updatedBy: import("drizzle-orm/pg-core").PgColumn<{
      name: "updated_by";
      tableName: "field_block_documents";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    updatedAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "updated_at";
      tableName: "field_block_documents";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
declare const fieldReusableBlocks: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "field_reusable_blocks";
  schema: undefined;
  columns: {
    id: import("drizzle-orm/pg-core").PgColumn<{
      name: "id";
      tableName: "field_reusable_blocks";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: true;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    version: import("drizzle-orm/pg-core").PgColumn<{
      name: "version";
      tableName: "field_reusable_blocks";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    document: import("drizzle-orm/pg-core").PgColumn<{
      name: "document";
      tableName: "field_reusable_blocks";
      dataType: "json";
      columnType: "PgJsonb";
      data: StoredBlockDocument;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: StoredBlockDocument;
    }>;
    definitionVersions: import("drizzle-orm/pg-core").PgColumn<{
      name: "definition_versions";
      tableName: "field_reusable_blocks";
      dataType: "json";
      columnType: "PgJsonb";
      data: Readonly<Record<string, number>>;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: Readonly<Record<string, number>>;
    }>;
    deletedAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "deleted_at";
      tableName: "field_reusable_blocks";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "host_session_id";
      tableName: "field_reusable_blocks";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    updatedBy: import("drizzle-orm/pg-core").PgColumn<{
      name: "updated_by";
      tableName: "field_reusable_blocks";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    updatedAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "updated_at";
      tableName: "field_reusable_blocks";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
declare const fieldRevisions: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "field_revisions";
  schema: undefined;
  columns: {
    id: import("drizzle-orm/pg-core").PgColumn<{
      name: "id";
      tableName: "field_revisions";
      dataType: "string";
      columnType: "PgUUID";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: true;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    entityType: import("drizzle-orm/pg-core").PgColumn<{
      name: "entity_type";
      tableName: "field_revisions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    entityId: import("drizzle-orm/pg-core").PgColumn<{
      name: "entity_id";
      tableName: "field_revisions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    parentRevisionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "parent_revision_id";
      tableName: "field_revisions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    parentAutosaveId: import("drizzle-orm/pg-core").PgColumn<{
      name: "parent_autosave_id";
      tableName: "field_revisions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    kind: import("drizzle-orm/pg-core").PgColumn<{
      name: "kind";
      tableName: "field_revisions";
      dataType: "string";
      columnType: "PgText";
      data: "revision" | "autosave";
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: "revision" | "autosave";
    }>;
    retentionClass: import("drizzle-orm/pg-core").PgColumn<{
      name: "retention_class";
      tableName: "field_revisions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    definitionVersions: import("drizzle-orm/pg-core").PgColumn<{
      name: "definition_versions";
      tableName: "field_revisions";
      dataType: "json";
      columnType: "PgJsonb";
      data: Readonly<Record<string, number>>;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: Readonly<Record<string, number>>;
    }>;
    values: import("drizzle-orm/pg-core").PgColumn<{
      name: "values";
      tableName: "field_revisions";
      dataType: "json";
      columnType: "PgJsonb";
      data: FieldStorageValue;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldStorageValue;
    }>;
    blockDocument: import("drizzle-orm/pg-core").PgColumn<{
      name: "block_document";
      tableName: "field_revisions";
      dataType: "json";
      columnType: "PgJsonb";
      data: StoredBlockDocument;
      driverParam: unknown;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: StoredBlockDocument;
    }>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "field_revisions";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    createdBy: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_by";
      tableName: "field_revisions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    sourceVersion: import("drizzle-orm/pg-core").PgColumn<{
      name: "source_version";
      tableName: "field_revisions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "host_session_id";
      tableName: "field_revisions";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
declare const fieldsOperationReceipts: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "fields_operation_receipts";
  schema: undefined;
  columns: {
    operationId: import("drizzle-orm/pg-core").PgColumn<{
      name: "operation_id";
      tableName: "fields_operation_receipts";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: true;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    kind: import("drizzle-orm/pg-core").PgColumn<{
      name: "kind";
      tableName: "fields_operation_receipts";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    principalScope: import("drizzle-orm/pg-core").PgColumn<{
      name: "principal_scope";
      tableName: "fields_operation_receipts";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    requestHash: import("drizzle-orm/pg-core").PgColumn<{
      name: "request_hash";
      tableName: "fields_operation_receipts";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    result: import("drizzle-orm/pg-core").PgColumn<{
      name: "result";
      tableName: "fields_operation_receipts";
      dataType: "json";
      columnType: "PgJsonb";
      data: FieldStorageValue;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldStorageValue;
    }>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "fields_operation_receipts";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
/** Final recursive typed EAV source of truth. */
declare const fieldValueNodes: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "field_value_nodes";
  schema: undefined;
  columns: {
    nodeId: import("drizzle-orm/pg-core").PgColumn<{
      name: "node_id";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgUUID";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: true;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    entityType: import("drizzle-orm/pg-core").PgColumn<{
      name: "entity_type";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    entityId: import("drizzle-orm/pg-core").PgColumn<{
      name: "entity_id";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    groupKey: import("drizzle-orm/pg-core").PgColumn<{
      name: "group_key";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    definitionRevision: import("drizzle-orm/pg-core").PgColumn<{
      name: "definition_revision";
      tableName: "field_value_nodes";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    fieldKey: import("drizzle-orm/pg-core").PgColumn<{
      name: "field_key";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    path: import("drizzle-orm/pg-core").PgColumn<{
      name: "path";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    parentNodeId: import("drizzle-orm/pg-core").PgColumn<{
      name: "parent_node_id";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgUUID";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    rowId: import("drizzle-orm/pg-core").PgColumn<{
      name: "row_id";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    layoutKey: import("drizzle-orm/pg-core").PgColumn<{
      name: "layout_key";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    nodeKind: import("drizzle-orm/pg-core").PgColumn<{
      name: "node_kind";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: "group" | "repeaterRow" | "flexibleRow" | "leaf";
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: "group" | "repeaterRow" | "flexibleRow" | "leaf";
    }>;
    ordinal: import("drizzle-orm/pg-core").PgColumn<{
      name: "ordinal";
      tableName: "field_value_nodes";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    isNull: import("drizzle-orm/pg-core").PgColumn<{
      name: "is_null";
      tableName: "field_value_nodes";
      dataType: "boolean";
      columnType: "PgBoolean";
      data: boolean;
      driverParam: boolean;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    valueText: import("drizzle-orm/pg-core").PgColumn<{
      name: "value_text";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    valueNumber: import("drizzle-orm/pg-core").PgColumn<{
      name: "value_number";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgNumeric";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    valueBoolean: import("drizzle-orm/pg-core").PgColumn<{
      name: "value_boolean";
      tableName: "field_value_nodes";
      dataType: "boolean";
      columnType: "PgBoolean";
      data: boolean;
      driverParam: boolean;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    valueDateTime: import("drizzle-orm/pg-core").PgColumn<{
      name: "value_date_time";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    valueRef: import("drizzle-orm/pg-core").PgColumn<{
      name: "value_ref";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    valueJson: import("drizzle-orm/pg-core").PgColumn<{
      name: "value_json";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    legacySourceIds: import("drizzle-orm/pg-core").PgColumn<{
      name: "legacy_source_ids";
      tableName: "field_value_nodes";
      dataType: "json";
      columnType: "PgJsonb";
      data: string[];
      driverParam: unknown;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: string[];
    }>;
    legacySourceHash: import("drizzle-orm/pg-core").PgColumn<{
      name: "legacy_source_hash";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "host_session_id";
      tableName: "field_value_nodes";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "field_value_nodes";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    updatedAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "updated_at";
      tableName: "field_value_nodes";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
declare const fieldsImportStaging: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "fields_import_staging";
  schema: undefined;
  columns: {
    hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "host_session_id";
      tableName: "fields_import_staging";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    section: import("drizzle-orm/pg-core").PgColumn<{
      name: "section";
      tableName: "fields_import_staging";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    ordinal: import("drizzle-orm/pg-core").PgColumn<{
      name: "ordinal";
      tableName: "fields_import_staging";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
      name: "canonical_hash";
      tableName: "fields_import_staging";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    payload: import("drizzle-orm/pg-core").PgColumn<{
      name: "payload";
      tableName: "fields_import_staging";
      dataType: "json";
      columnType: "PgJsonb";
      data: FieldStorageValue;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldStorageValue;
    }>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "fields_import_staging";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
declare const fieldsImportJournal: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "fields_import_journal";
  schema: undefined;
  columns: {
    importId: import("drizzle-orm/pg-core").PgColumn<{
      name: "import_id";
      tableName: "fields_import_journal";
      dataType: "string";
      columnType: "PgUUID";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: true;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
      name: "host_session_id";
      tableName: "fields_import_journal";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    manifestHash: import("drizzle-orm/pg-core").PgColumn<{
      name: "manifest_hash";
      tableName: "fields_import_journal";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    planHash: import("drizzle-orm/pg-core").PgColumn<{
      name: "plan_hash";
      tableName: "fields_import_journal";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    state: import("drizzle-orm/pg-core").PgColumn<{
      name: "state";
      tableName: "fields_import_journal";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    version: import("drizzle-orm/pg-core").PgColumn<{
      name: "version";
      tableName: "fields_import_journal";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    nextSection: import("drizzle-orm/pg-core").PgColumn<{
      name: "next_section";
      tableName: "fields_import_journal";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    nextOffset: import("drizzle-orm/pg-core").PgColumn<{
      name: "next_offset";
      tableName: "fields_import_journal";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    highWaterMark: import("drizzle-orm/pg-core").PgColumn<{
      name: "high_water_mark";
      tableName: "fields_import_journal";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    payload: import("drizzle-orm/pg-core").PgColumn<{
      name: "payload";
      tableName: "fields_import_journal";
      dataType: "json";
      columnType: "PgJsonb";
      data: FieldStorageValue;
      driverParam: unknown;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldStorageValue;
    }>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "fields_import_journal";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    updatedAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "updated_at";
      tableName: "fields_import_journal";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
declare const fieldsMigrationCheckpoints: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "fields_migration_checkpoints";
  schema: undefined;
  columns: {
    migrationId: import("drizzle-orm/pg-core").PgColumn<{
      name: "migration_id";
      tableName: "fields_migration_checkpoints";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    adapter: import("drizzle-orm/pg-core").PgColumn<{
      name: "adapter";
      tableName: "fields_migration_checkpoints";
      dataType: "string";
      columnType: "PgText";
      data: FieldsMigrationAdapter;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldsMigrationAdapter;
    }>;
    phase: import("drizzle-orm/pg-core").PgColumn<{
      name: "phase";
      tableName: "fields_migration_checkpoints";
      dataType: "string";
      columnType: "PgText";
      data: FieldsMigrationPhase;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldsMigrationPhase;
    }>;
    batchOrdinal: import("drizzle-orm/pg-core").PgColumn<{
      name: "batch_ordinal";
      tableName: "fields_migration_checkpoints";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    version: import("drizzle-orm/pg-core").PgColumn<{
      name: "version";
      tableName: "fields_migration_checkpoints";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    lastKey: import("drizzle-orm/pg-core").PgColumn<{
      name: "last_key";
      tableName: "fields_migration_checkpoints";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    sourceCount: import("drizzle-orm/pg-core").PgColumn<{
      name: "source_count";
      tableName: "fields_migration_checkpoints";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    targetCount: import("drizzle-orm/pg-core").PgColumn<{
      name: "target_count";
      tableName: "fields_migration_checkpoints";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    sourceHash: import("drizzle-orm/pg-core").PgColumn<{
      name: "source_hash";
      tableName: "fields_migration_checkpoints";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    targetHash: import("drizzle-orm/pg-core").PgColumn<{
      name: "target_hash";
      tableName: "fields_migration_checkpoints";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    highWaterMark: import("drizzle-orm/pg-core").PgColumn<{
      name: "high_water_mark";
      tableName: "fields_migration_checkpoints";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "fields_migration_checkpoints";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    updatedAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "updated_at";
      tableName: "fields_migration_checkpoints";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
declare const fieldsMigrationWriteJournal: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "fields_migration_write_journal";
  schema: undefined;
  columns: {
    seq: import("drizzle-orm/pg-core").PgColumn<{
      name: "seq";
      tableName: "fields_migration_write_journal";
      dataType: "number";
      columnType: "PgBigSerial53";
      data: number;
      driverParam: number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: true;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    migrationId: import("drizzle-orm/pg-core").PgColumn<{
      name: "migration_id";
      tableName: "fields_migration_write_journal";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    operation: import("drizzle-orm/pg-core").PgColumn<{
      name: "operation";
      tableName: "fields_migration_write_journal";
      dataType: "string";
      columnType: "PgText";
      data: "insert" | "update" | "delete";
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: "insert" | "update" | "delete";
    }>;
    valueId: import("drizzle-orm/pg-core").PgColumn<{
      name: "value_id";
      tableName: "fields_migration_write_journal";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    beforeValue: import("drizzle-orm/pg-core").PgColumn<{
      name: "before_value";
      tableName: "fields_migration_write_journal";
      dataType: "json";
      columnType: "PgJsonb";
      data: FieldStorageValue;
      driverParam: unknown;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldStorageValue;
    }>;
    afterValue: import("drizzle-orm/pg-core").PgColumn<{
      name: "after_value";
      tableName: "fields_migration_write_journal";
      dataType: "json";
      columnType: "PgJsonb";
      data: FieldStorageValue;
      driverParam: unknown;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {
      $type: FieldStorageValue;
    }>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "fields_migration_write_journal";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
declare const fieldValues: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "field_values";
  schema: undefined;
  columns: {
    id: import("drizzle-orm/pg-core").PgColumn<{
      name: "id";
      tableName: "field_values";
      dataType: "string";
      columnType: "PgUUID";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: true;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    entityType: import("drizzle-orm/pg-core").PgColumn<{
      name: "entity_type";
      tableName: "field_values";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    entityId: import("drizzle-orm/pg-core").PgColumn<{
      name: "entity_id";
      tableName: "field_values";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    groupId: import("drizzle-orm/pg-core").PgColumn<{
      name: "group_id";
      tableName: "field_values";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    fieldKey: import("drizzle-orm/pg-core").PgColumn<{
      name: "field_key";
      tableName: "field_values";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    ordinal: import("drizzle-orm/pg-core").PgColumn<{
      name: "ordinal";
      tableName: "field_values";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    valueText: import("drizzle-orm/pg-core").PgColumn<{
      name: "value_text";
      tableName: "field_values";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    valueNum: import("drizzle-orm/pg-core").PgColumn<{
      name: "value_num";
      tableName: "field_values";
      dataType: "string";
      columnType: "PgNumeric";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    valueBool: import("drizzle-orm/pg-core").PgColumn<{
      name: "value_bool";
      tableName: "field_values";
      dataType: "boolean";
      columnType: "PgBoolean";
      data: boolean;
      driverParam: boolean;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    valueDate: import("drizzle-orm/pg-core").PgColumn<{
      name: "value_date";
      tableName: "field_values";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    refType: import("drizzle-orm/pg-core").PgColumn<{
      name: "ref_type";
      tableName: "field_values";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    refId: import("drizzle-orm/pg-core").PgColumn<{
      name: "ref_id";
      tableName: "field_values";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    refMeta: import("drizzle-orm/pg-core").PgColumn<{
      name: "ref_meta";
      tableName: "field_values";
      dataType: "json";
      columnType: "PgJsonb";
      data: unknown;
      driverParam: unknown;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "field_values";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    updatedAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "updated_at";
      tableName: "field_values";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
declare const fieldGroups: import("drizzle-orm/pg-core").PgTableWithColumns<{
  name: "field_groups";
  schema: undefined;
  columns: {
    id: import("drizzle-orm/pg-core").PgColumn<{
      name: "id";
      tableName: "field_groups";
      dataType: "string";
      columnType: "PgUUID";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: true;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    entityType: import("drizzle-orm/pg-core").PgColumn<{
      name: "entity_type";
      tableName: "field_groups";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    subType: import("drizzle-orm/pg-core").PgColumn<{
      name: "sub_type";
      tableName: "field_groups";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: false;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    key: import("drizzle-orm/pg-core").PgColumn<{
      name: "key";
      tableName: "field_groups";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    label: import("drizzle-orm/pg-core").PgColumn<{
      name: "label";
      tableName: "field_groups";
      dataType: "string";
      columnType: "PgText";
      data: string;
      driverParam: string;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: [string, ...string[]];
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    fields: import("drizzle-orm/pg-core").PgColumn<{
      name: "fields";
      tableName: "field_groups";
      dataType: "json";
      columnType: "PgJsonb";
      data: unknown;
      driverParam: unknown;
      notNull: true;
      hasDefault: false;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    position: import("drizzle-orm/pg-core").PgColumn<{
      name: "position";
      tableName: "field_groups";
      dataType: "number";
      columnType: "PgInteger";
      data: number;
      driverParam: string | number;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: false;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    createdAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "created_at";
      tableName: "field_groups";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
    updatedAt: import("drizzle-orm/pg-core").PgColumn<{
      name: "updated_at";
      tableName: "field_groups";
      dataType: "date";
      columnType: "PgTimestamp";
      data: Date;
      driverParam: string;
      notNull: true;
      hasDefault: true;
      isPrimaryKey: false;
      isAutoincrement: false;
      hasRuntimeDefault: true;
      enumValues: undefined;
      baseColumn: never;
      identity: undefined;
      generated: undefined;
    }, {}, {}>;
  };
  dialect: "pg";
}>;
declare const fieldsSchema: {
  fieldValues: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "field_values";
    schema: undefined;
    columns: {
      id: import("drizzle-orm/pg-core").PgColumn<{
        name: "id";
        tableName: "field_values";
        dataType: "string";
        columnType: "PgUUID";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: true;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      entityType: import("drizzle-orm/pg-core").PgColumn<{
        name: "entity_type";
        tableName: "field_values";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      entityId: import("drizzle-orm/pg-core").PgColumn<{
        name: "entity_id";
        tableName: "field_values";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      groupId: import("drizzle-orm/pg-core").PgColumn<{
        name: "group_id";
        tableName: "field_values";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      fieldKey: import("drizzle-orm/pg-core").PgColumn<{
        name: "field_key";
        tableName: "field_values";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      ordinal: import("drizzle-orm/pg-core").PgColumn<{
        name: "ordinal";
        tableName: "field_values";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      valueText: import("drizzle-orm/pg-core").PgColumn<{
        name: "value_text";
        tableName: "field_values";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      valueNum: import("drizzle-orm/pg-core").PgColumn<{
        name: "value_num";
        tableName: "field_values";
        dataType: "string";
        columnType: "PgNumeric";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      valueBool: import("drizzle-orm/pg-core").PgColumn<{
        name: "value_bool";
        tableName: "field_values";
        dataType: "boolean";
        columnType: "PgBoolean";
        data: boolean;
        driverParam: boolean;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      valueDate: import("drizzle-orm/pg-core").PgColumn<{
        name: "value_date";
        tableName: "field_values";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      refType: import("drizzle-orm/pg-core").PgColumn<{
        name: "ref_type";
        tableName: "field_values";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      refId: import("drizzle-orm/pg-core").PgColumn<{
        name: "ref_id";
        tableName: "field_values";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      refMeta: import("drizzle-orm/pg-core").PgColumn<{
        name: "ref_meta";
        tableName: "field_values";
        dataType: "json";
        columnType: "PgJsonb";
        data: unknown;
        driverParam: unknown;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "field_values";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      updatedAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "updated_at";
        tableName: "field_values";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldGroups: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "field_groups";
    schema: undefined;
    columns: {
      id: import("drizzle-orm/pg-core").PgColumn<{
        name: "id";
        tableName: "field_groups";
        dataType: "string";
        columnType: "PgUUID";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: true;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      entityType: import("drizzle-orm/pg-core").PgColumn<{
        name: "entity_type";
        tableName: "field_groups";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      subType: import("drizzle-orm/pg-core").PgColumn<{
        name: "sub_type";
        tableName: "field_groups";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      key: import("drizzle-orm/pg-core").PgColumn<{
        name: "key";
        tableName: "field_groups";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      label: import("drizzle-orm/pg-core").PgColumn<{
        name: "label";
        tableName: "field_groups";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      fields: import("drizzle-orm/pg-core").PgColumn<{
        name: "fields";
        tableName: "field_groups";
        dataType: "json";
        columnType: "PgJsonb";
        data: unknown;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      position: import("drizzle-orm/pg-core").PgColumn<{
        name: "position";
        tableName: "field_groups";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "field_groups";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      updatedAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "updated_at";
        tableName: "field_groups";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldGroupDefinitions: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "field_group_definitions";
    schema: undefined;
    columns: {
      key: import("drizzle-orm/pg-core").PgColumn<{
        name: "key";
        tableName: "field_group_definitions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: true;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      origin: import("drizzle-orm/pg-core").PgColumn<{
        name: "origin";
        tableName: "field_group_definitions";
        dataType: "string";
        columnType: "PgText";
        data: FieldsDefinitionOrigin;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldsDefinitionOrigin;
      }>;
      version: import("drizzle-orm/pg-core").PgColumn<{
        name: "version";
        tableName: "field_group_definitions";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      active: import("drizzle-orm/pg-core").PgColumn<{
        name: "active";
        tableName: "field_group_definitions";
        dataType: "boolean";
        columnType: "PgBoolean";
        data: boolean;
        driverParam: boolean;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      currentRevision: import("drizzle-orm/pg-core").PgColumn<{
        name: "current_revision";
        tableName: "field_group_definitions";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
        name: "canonical_hash";
        tableName: "field_group_definitions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      definition: import("drizzle-orm/pg-core").PgColumn<{
        name: "definition";
        tableName: "field_group_definitions";
        dataType: "json";
        columnType: "PgJsonb";
        data: FieldGroup;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldGroup;
      }>;
      shadowedDbVersion: import("drizzle-orm/pg-core").PgColumn<{
        name: "shadowed_db_version";
        tableName: "field_group_definitions";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "host_session_id";
        tableName: "field_group_definitions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "field_group_definitions";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      updatedAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "updated_at";
        tableName: "field_group_definitions";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldDefinitionVersions: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "field_definition_versions";
    schema: undefined;
    columns: {
      groupKey: import("drizzle-orm/pg-core").PgColumn<{
        name: "group_key";
        tableName: "field_definition_versions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      revision: import("drizzle-orm/pg-core").PgColumn<{
        name: "revision";
        tableName: "field_definition_versions";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
        name: "canonical_hash";
        tableName: "field_definition_versions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      definition: import("drizzle-orm/pg-core").PgColumn<{
        name: "definition";
        tableName: "field_definition_versions";
        dataType: "json";
        columnType: "PgJsonb";
        data: FieldGroup;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldGroup;
      }>;
      origin: import("drizzle-orm/pg-core").PgColumn<{
        name: "origin";
        tableName: "field_definition_versions";
        dataType: "string";
        columnType: "PgText";
        data: FieldsDefinitionOrigin;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldsDefinitionOrigin;
      }>;
      hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "host_session_id";
        tableName: "field_definition_versions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "field_definition_versions";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldOptionsDefinitions: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "field_options_definitions";
    schema: undefined;
    columns: {
      key: import("drizzle-orm/pg-core").PgColumn<{
        name: "key";
        tableName: "field_options_definitions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: true;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      origin: import("drizzle-orm/pg-core").PgColumn<{
        name: "origin";
        tableName: "field_options_definitions";
        dataType: "string";
        columnType: "PgText";
        data: FieldsDefinitionOrigin;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldsDefinitionOrigin;
      }>;
      version: import("drizzle-orm/pg-core").PgColumn<{
        name: "version";
        tableName: "field_options_definitions";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      active: import("drizzle-orm/pg-core").PgColumn<{
        name: "active";
        tableName: "field_options_definitions";
        dataType: "boolean";
        columnType: "PgBoolean";
        data: boolean;
        driverParam: boolean;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      currentRevision: import("drizzle-orm/pg-core").PgColumn<{
        name: "current_revision";
        tableName: "field_options_definitions";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
        name: "canonical_hash";
        tableName: "field_options_definitions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      definition: import("drizzle-orm/pg-core").PgColumn<{
        name: "definition";
        tableName: "field_options_definitions";
        dataType: "json";
        columnType: "PgJsonb";
        data: OptionsPageDefinitionSnapshot;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: OptionsPageDefinitionSnapshot;
      }>;
      shadowedDbVersion: import("drizzle-orm/pg-core").PgColumn<{
        name: "shadowed_db_version";
        tableName: "field_options_definitions";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "host_session_id";
        tableName: "field_options_definitions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "field_options_definitions";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      updatedAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "updated_at";
        tableName: "field_options_definitions";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldOptionsDefinitionVersions: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "field_options_definition_versions";
    schema: undefined;
    columns: {
      optionsKey: import("drizzle-orm/pg-core").PgColumn<{
        name: "options_key";
        tableName: "field_options_definition_versions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      revision: import("drizzle-orm/pg-core").PgColumn<{
        name: "revision";
        tableName: "field_options_definition_versions";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
        name: "canonical_hash";
        tableName: "field_options_definition_versions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      definition: import("drizzle-orm/pg-core").PgColumn<{
        name: "definition";
        tableName: "field_options_definition_versions";
        dataType: "json";
        columnType: "PgJsonb";
        data: OptionsPageDefinitionSnapshot;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: OptionsPageDefinitionSnapshot;
      }>;
      origin: import("drizzle-orm/pg-core").PgColumn<{
        name: "origin";
        tableName: "field_options_definition_versions";
        dataType: "string";
        columnType: "PgText";
        data: FieldsDefinitionOrigin;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldsDefinitionOrigin;
      }>;
      hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "host_session_id";
        tableName: "field_options_definition_versions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "field_options_definition_versions";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldBlockDefinitions: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "field_block_definitions";
    schema: undefined;
    columns: {
      key: import("drizzle-orm/pg-core").PgColumn<{
        name: "key";
        tableName: "field_block_definitions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: true;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      origin: import("drizzle-orm/pg-core").PgColumn<{
        name: "origin";
        tableName: "field_block_definitions";
        dataType: "string";
        columnType: "PgText";
        data: FieldsDefinitionOrigin;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldsDefinitionOrigin;
      }>;
      version: import("drizzle-orm/pg-core").PgColumn<{
        name: "version";
        tableName: "field_block_definitions";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      active: import("drizzle-orm/pg-core").PgColumn<{
        name: "active";
        tableName: "field_block_definitions";
        dataType: "boolean";
        columnType: "PgBoolean";
        data: boolean;
        driverParam: boolean;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      currentRevision: import("drizzle-orm/pg-core").PgColumn<{
        name: "current_revision";
        tableName: "field_block_definitions";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
        name: "canonical_hash";
        tableName: "field_block_definitions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      definition: import("drizzle-orm/pg-core").PgColumn<{
        name: "definition";
        tableName: "field_block_definitions";
        dataType: "json";
        columnType: "PgJsonb";
        data: FieldBlockDefinitionSnapshot;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldBlockDefinitionSnapshot;
      }>;
      shadowedDbVersion: import("drizzle-orm/pg-core").PgColumn<{
        name: "shadowed_db_version";
        tableName: "field_block_definitions";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "host_session_id";
        tableName: "field_block_definitions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "field_block_definitions";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      updatedAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "updated_at";
        tableName: "field_block_definitions";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldBlockDefinitionVersions: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "field_block_definition_versions";
    schema: undefined;
    columns: {
      blockKey: import("drizzle-orm/pg-core").PgColumn<{
        name: "block_key";
        tableName: "field_block_definition_versions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      revision: import("drizzle-orm/pg-core").PgColumn<{
        name: "revision";
        tableName: "field_block_definition_versions";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
        name: "canonical_hash";
        tableName: "field_block_definition_versions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      definition: import("drizzle-orm/pg-core").PgColumn<{
        name: "definition";
        tableName: "field_block_definition_versions";
        dataType: "json";
        columnType: "PgJsonb";
        data: FieldBlockDefinitionSnapshot;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldBlockDefinitionSnapshot;
      }>;
      origin: import("drizzle-orm/pg-core").PgColumn<{
        name: "origin";
        tableName: "field_block_definition_versions";
        dataType: "string";
        columnType: "PgText";
        data: FieldsDefinitionOrigin;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldsDefinitionOrigin;
      }>;
      hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "host_session_id";
        tableName: "field_block_definition_versions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "field_block_definition_versions";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldBlockDocuments: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "field_block_documents";
    schema: undefined;
    columns: {
      entityType: import("drizzle-orm/pg-core").PgColumn<{
        name: "entity_type";
        tableName: "field_block_documents";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      entityId: import("drizzle-orm/pg-core").PgColumn<{
        name: "entity_id";
        tableName: "field_block_documents";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      version: import("drizzle-orm/pg-core").PgColumn<{
        name: "version";
        tableName: "field_block_documents";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      document: import("drizzle-orm/pg-core").PgColumn<{
        name: "document";
        tableName: "field_block_documents";
        dataType: "json";
        columnType: "PgJsonb";
        data: StoredBlockDocument;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: StoredBlockDocument;
      }>;
      definitionVersions: import("drizzle-orm/pg-core").PgColumn<{
        name: "definition_versions";
        tableName: "field_block_documents";
        dataType: "json";
        columnType: "PgJsonb";
        data: Readonly<Record<string, number>>;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: Readonly<Record<string, number>>;
      }>;
      parentRevisionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "parent_revision_id";
        tableName: "field_block_documents";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "host_session_id";
        tableName: "field_block_documents";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      updatedBy: import("drizzle-orm/pg-core").PgColumn<{
        name: "updated_by";
        tableName: "field_block_documents";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      updatedAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "updated_at";
        tableName: "field_block_documents";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldReusableBlocks: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "field_reusable_blocks";
    schema: undefined;
    columns: {
      id: import("drizzle-orm/pg-core").PgColumn<{
        name: "id";
        tableName: "field_reusable_blocks";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: true;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      version: import("drizzle-orm/pg-core").PgColumn<{
        name: "version";
        tableName: "field_reusable_blocks";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      document: import("drizzle-orm/pg-core").PgColumn<{
        name: "document";
        tableName: "field_reusable_blocks";
        dataType: "json";
        columnType: "PgJsonb";
        data: StoredBlockDocument;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: StoredBlockDocument;
      }>;
      definitionVersions: import("drizzle-orm/pg-core").PgColumn<{
        name: "definition_versions";
        tableName: "field_reusable_blocks";
        dataType: "json";
        columnType: "PgJsonb";
        data: Readonly<Record<string, number>>;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: Readonly<Record<string, number>>;
      }>;
      deletedAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "deleted_at";
        tableName: "field_reusable_blocks";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "host_session_id";
        tableName: "field_reusable_blocks";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      updatedBy: import("drizzle-orm/pg-core").PgColumn<{
        name: "updated_by";
        tableName: "field_reusable_blocks";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      updatedAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "updated_at";
        tableName: "field_reusable_blocks";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldRevisions: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "field_revisions";
    schema: undefined;
    columns: {
      id: import("drizzle-orm/pg-core").PgColumn<{
        name: "id";
        tableName: "field_revisions";
        dataType: "string";
        columnType: "PgUUID";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: true;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      entityType: import("drizzle-orm/pg-core").PgColumn<{
        name: "entity_type";
        tableName: "field_revisions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      entityId: import("drizzle-orm/pg-core").PgColumn<{
        name: "entity_id";
        tableName: "field_revisions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      parentRevisionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "parent_revision_id";
        tableName: "field_revisions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      parentAutosaveId: import("drizzle-orm/pg-core").PgColumn<{
        name: "parent_autosave_id";
        tableName: "field_revisions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      kind: import("drizzle-orm/pg-core").PgColumn<{
        name: "kind";
        tableName: "field_revisions";
        dataType: "string";
        columnType: "PgText";
        data: "revision" | "autosave";
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: "revision" | "autosave";
      }>;
      retentionClass: import("drizzle-orm/pg-core").PgColumn<{
        name: "retention_class";
        tableName: "field_revisions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      definitionVersions: import("drizzle-orm/pg-core").PgColumn<{
        name: "definition_versions";
        tableName: "field_revisions";
        dataType: "json";
        columnType: "PgJsonb";
        data: Readonly<Record<string, number>>;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: Readonly<Record<string, number>>;
      }>;
      values: import("drizzle-orm/pg-core").PgColumn<{
        name: "values";
        tableName: "field_revisions";
        dataType: "json";
        columnType: "PgJsonb";
        data: FieldStorageValue;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldStorageValue;
      }>;
      blockDocument: import("drizzle-orm/pg-core").PgColumn<{
        name: "block_document";
        tableName: "field_revisions";
        dataType: "json";
        columnType: "PgJsonb";
        data: StoredBlockDocument;
        driverParam: unknown;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: StoredBlockDocument;
      }>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "field_revisions";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      createdBy: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_by";
        tableName: "field_revisions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      sourceVersion: import("drizzle-orm/pg-core").PgColumn<{
        name: "source_version";
        tableName: "field_revisions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "host_session_id";
        tableName: "field_revisions";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldsOperationReceipts: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "fields_operation_receipts";
    schema: undefined;
    columns: {
      operationId: import("drizzle-orm/pg-core").PgColumn<{
        name: "operation_id";
        tableName: "fields_operation_receipts";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: true;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      kind: import("drizzle-orm/pg-core").PgColumn<{
        name: "kind";
        tableName: "fields_operation_receipts";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      principalScope: import("drizzle-orm/pg-core").PgColumn<{
        name: "principal_scope";
        tableName: "fields_operation_receipts";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      requestHash: import("drizzle-orm/pg-core").PgColumn<{
        name: "request_hash";
        tableName: "fields_operation_receipts";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      result: import("drizzle-orm/pg-core").PgColumn<{
        name: "result";
        tableName: "fields_operation_receipts";
        dataType: "json";
        columnType: "PgJsonb";
        data: FieldStorageValue;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldStorageValue;
      }>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "fields_operation_receipts";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldValueNodes: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "field_value_nodes";
    schema: undefined;
    columns: {
      nodeId: import("drizzle-orm/pg-core").PgColumn<{
        name: "node_id";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgUUID";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: true;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      entityType: import("drizzle-orm/pg-core").PgColumn<{
        name: "entity_type";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      entityId: import("drizzle-orm/pg-core").PgColumn<{
        name: "entity_id";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      groupKey: import("drizzle-orm/pg-core").PgColumn<{
        name: "group_key";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      definitionRevision: import("drizzle-orm/pg-core").PgColumn<{
        name: "definition_revision";
        tableName: "field_value_nodes";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      fieldKey: import("drizzle-orm/pg-core").PgColumn<{
        name: "field_key";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      path: import("drizzle-orm/pg-core").PgColumn<{
        name: "path";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      parentNodeId: import("drizzle-orm/pg-core").PgColumn<{
        name: "parent_node_id";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgUUID";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      rowId: import("drizzle-orm/pg-core").PgColumn<{
        name: "row_id";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      layoutKey: import("drizzle-orm/pg-core").PgColumn<{
        name: "layout_key";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      nodeKind: import("drizzle-orm/pg-core").PgColumn<{
        name: "node_kind";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: "group" | "repeaterRow" | "flexibleRow" | "leaf";
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: "group" | "repeaterRow" | "flexibleRow" | "leaf";
      }>;
      ordinal: import("drizzle-orm/pg-core").PgColumn<{
        name: "ordinal";
        tableName: "field_value_nodes";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      isNull: import("drizzle-orm/pg-core").PgColumn<{
        name: "is_null";
        tableName: "field_value_nodes";
        dataType: "boolean";
        columnType: "PgBoolean";
        data: boolean;
        driverParam: boolean;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      valueText: import("drizzle-orm/pg-core").PgColumn<{
        name: "value_text";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      valueNumber: import("drizzle-orm/pg-core").PgColumn<{
        name: "value_number";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgNumeric";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      valueBoolean: import("drizzle-orm/pg-core").PgColumn<{
        name: "value_boolean";
        tableName: "field_value_nodes";
        dataType: "boolean";
        columnType: "PgBoolean";
        data: boolean;
        driverParam: boolean;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      valueDateTime: import("drizzle-orm/pg-core").PgColumn<{
        name: "value_date_time";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      valueRef: import("drizzle-orm/pg-core").PgColumn<{
        name: "value_ref";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      valueJson: import("drizzle-orm/pg-core").PgColumn<{
        name: "value_json";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      legacySourceIds: import("drizzle-orm/pg-core").PgColumn<{
        name: "legacy_source_ids";
        tableName: "field_value_nodes";
        dataType: "json";
        columnType: "PgJsonb";
        data: string[];
        driverParam: unknown;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: string[];
      }>;
      legacySourceHash: import("drizzle-orm/pg-core").PgColumn<{
        name: "legacy_source_hash";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "host_session_id";
        tableName: "field_value_nodes";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "field_value_nodes";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      updatedAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "updated_at";
        tableName: "field_value_nodes";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldsImportStaging: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "fields_import_staging";
    schema: undefined;
    columns: {
      hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "host_session_id";
        tableName: "fields_import_staging";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      section: import("drizzle-orm/pg-core").PgColumn<{
        name: "section";
        tableName: "fields_import_staging";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      ordinal: import("drizzle-orm/pg-core").PgColumn<{
        name: "ordinal";
        tableName: "fields_import_staging";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      canonicalHash: import("drizzle-orm/pg-core").PgColumn<{
        name: "canonical_hash";
        tableName: "fields_import_staging";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      payload: import("drizzle-orm/pg-core").PgColumn<{
        name: "payload";
        tableName: "fields_import_staging";
        dataType: "json";
        columnType: "PgJsonb";
        data: FieldStorageValue;
        driverParam: unknown;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldStorageValue;
      }>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "fields_import_staging";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldsImportJournal: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "fields_import_journal";
    schema: undefined;
    columns: {
      importId: import("drizzle-orm/pg-core").PgColumn<{
        name: "import_id";
        tableName: "fields_import_journal";
        dataType: "string";
        columnType: "PgUUID";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: true;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      hostSessionId: import("drizzle-orm/pg-core").PgColumn<{
        name: "host_session_id";
        tableName: "fields_import_journal";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      manifestHash: import("drizzle-orm/pg-core").PgColumn<{
        name: "manifest_hash";
        tableName: "fields_import_journal";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      planHash: import("drizzle-orm/pg-core").PgColumn<{
        name: "plan_hash";
        tableName: "fields_import_journal";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      state: import("drizzle-orm/pg-core").PgColumn<{
        name: "state";
        tableName: "fields_import_journal";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      version: import("drizzle-orm/pg-core").PgColumn<{
        name: "version";
        tableName: "fields_import_journal";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      nextSection: import("drizzle-orm/pg-core").PgColumn<{
        name: "next_section";
        tableName: "fields_import_journal";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      nextOffset: import("drizzle-orm/pg-core").PgColumn<{
        name: "next_offset";
        tableName: "fields_import_journal";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      highWaterMark: import("drizzle-orm/pg-core").PgColumn<{
        name: "high_water_mark";
        tableName: "fields_import_journal";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      payload: import("drizzle-orm/pg-core").PgColumn<{
        name: "payload";
        tableName: "fields_import_journal";
        dataType: "json";
        columnType: "PgJsonb";
        data: FieldStorageValue;
        driverParam: unknown;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldStorageValue;
      }>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "fields_import_journal";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      updatedAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "updated_at";
        tableName: "fields_import_journal";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldsMigrationCheckpoints: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "fields_migration_checkpoints";
    schema: undefined;
    columns: {
      migrationId: import("drizzle-orm/pg-core").PgColumn<{
        name: "migration_id";
        tableName: "fields_migration_checkpoints";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      adapter: import("drizzle-orm/pg-core").PgColumn<{
        name: "adapter";
        tableName: "fields_migration_checkpoints";
        dataType: "string";
        columnType: "PgText";
        data: FieldsMigrationAdapter;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldsMigrationAdapter;
      }>;
      phase: import("drizzle-orm/pg-core").PgColumn<{
        name: "phase";
        tableName: "fields_migration_checkpoints";
        dataType: "string";
        columnType: "PgText";
        data: FieldsMigrationPhase;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldsMigrationPhase;
      }>;
      batchOrdinal: import("drizzle-orm/pg-core").PgColumn<{
        name: "batch_ordinal";
        tableName: "fields_migration_checkpoints";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      version: import("drizzle-orm/pg-core").PgColumn<{
        name: "version";
        tableName: "fields_migration_checkpoints";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      lastKey: import("drizzle-orm/pg-core").PgColumn<{
        name: "last_key";
        tableName: "fields_migration_checkpoints";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      sourceCount: import("drizzle-orm/pg-core").PgColumn<{
        name: "source_count";
        tableName: "fields_migration_checkpoints";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      targetCount: import("drizzle-orm/pg-core").PgColumn<{
        name: "target_count";
        tableName: "fields_migration_checkpoints";
        dataType: "number";
        columnType: "PgInteger";
        data: number;
        driverParam: string | number;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      sourceHash: import("drizzle-orm/pg-core").PgColumn<{
        name: "source_hash";
        tableName: "fields_migration_checkpoints";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      targetHash: import("drizzle-orm/pg-core").PgColumn<{
        name: "target_hash";
        tableName: "fields_migration_checkpoints";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      highWaterMark: import("drizzle-orm/pg-core").PgColumn<{
        name: "high_water_mark";
        tableName: "fields_migration_checkpoints";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "fields_migration_checkpoints";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      updatedAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "updated_at";
        tableName: "fields_migration_checkpoints";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
  fieldsMigrationWriteJournal: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "fields_migration_write_journal";
    schema: undefined;
    columns: {
      seq: import("drizzle-orm/pg-core").PgColumn<{
        name: "seq";
        tableName: "fields_migration_write_journal";
        dataType: "number";
        columnType: "PgBigSerial53";
        data: number;
        driverParam: number;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: true;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      migrationId: import("drizzle-orm/pg-core").PgColumn<{
        name: "migration_id";
        tableName: "fields_migration_write_journal";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      operation: import("drizzle-orm/pg-core").PgColumn<{
        name: "operation";
        tableName: "fields_migration_write_journal";
        dataType: "string";
        columnType: "PgText";
        data: "insert" | "update" | "delete";
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: "insert" | "update" | "delete";
      }>;
      valueId: import("drizzle-orm/pg-core").PgColumn<{
        name: "value_id";
        tableName: "fields_migration_write_journal";
        dataType: "string";
        columnType: "PgText";
        data: string;
        driverParam: string;
        notNull: true;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: [string, ...string[]];
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
      beforeValue: import("drizzle-orm/pg-core").PgColumn<{
        name: "before_value";
        tableName: "fields_migration_write_journal";
        dataType: "json";
        columnType: "PgJsonb";
        data: FieldStorageValue;
        driverParam: unknown;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldStorageValue;
      }>;
      afterValue: import("drizzle-orm/pg-core").PgColumn<{
        name: "after_value";
        tableName: "fields_migration_write_journal";
        dataType: "json";
        columnType: "PgJsonb";
        data: FieldStorageValue;
        driverParam: unknown;
        notNull: false;
        hasDefault: false;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: false;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {
        $type: FieldStorageValue;
      }>;
      createdAt: import("drizzle-orm/pg-core").PgColumn<{
        name: "created_at";
        tableName: "fields_migration_write_journal";
        dataType: "date";
        columnType: "PgTimestamp";
        data: Date;
        driverParam: string;
        notNull: true;
        hasDefault: true;
        isPrimaryKey: false;
        isAutoincrement: false;
        hasRuntimeDefault: true;
        enumValues: undefined;
        baseColumn: never;
        identity: undefined;
        generated: undefined;
      }, {}, {}>;
    };
    dialect: "pg";
  }>;
};
type FieldsSchema = typeof fieldsSchema;
/** Callback-minted capability; callers never construct this from a querier. */
type FieldsTransaction = Transaction<FieldsSchema>;
//#endregion
export { StoredBlockDocument as $, FlexibleLayout as A, LocationValue as B, FieldsDefinitionKind as C, fieldsMigrationWriteJournal as Ct, FieldsSchema as D, parseFieldDefinition as Dt, FieldsMigrationPhase as E, isFieldDefinitionVersionError as Et, ImageMediaSettings as F, OptionsPageDefinitionSnapshot as G, MediaSettings as H, LinkSettings as I, RelationshipSettings as J, PasswordSettings as K, LocationOperator as L, GallerySettings as M, GroupSettings as N, FieldsTransaction as O, parseFieldDefinitionVersion as Ot, IconSettings as P, ScalarChoice as Q, LocationRule as R, FieldValueNodeRow as S, fieldsMigrationCheckpoints as St, FieldsMigrationAdapter as T, fieldsSchema as Tt, NormalizedFieldsRegistryRecord as U, MapSettings as V, NumberSettings as W, RichTextSettings as X, RepeaterSettings as Y, SafePattern as Z, FieldGroup as _, fieldRevisions as _t, ColorSettings as a, UserSettings as at, FieldStorageValue as b, fieldsImportJournal as bt, DateSettings as c, fieldBlockDefinitionVersions as ct, EntitySettings as d, fieldDefinitionVersions as dt, TaxonomySettings as et, FieldBlockDefinitionSnapshot as f, fieldGroupDefinitions as ft, FieldDefinitionVersionErrorCode as g, fieldReusableBlocks as gt, FieldDefinitionVersionError as h, fieldOptionsDefinitions as ht, CloneSettings as i, UrlSettings as it, FlexibleSettings as j, FlatFieldValue as k, parseFieldGroupDefinition as kt, DateTimeSettings as l, fieldBlockDefinitions as lt, FieldDefinitionVersion as m, fieldOptionsDefinitionVersions as mt, BooleanSettings as n, TextareaSettings as nt, ConditionalRule as o, WrapperSettings as ot, FieldDefinition as p, fieldGroups as pt, PresentationSettings as q, ChoiceSettings as r, TimeSettings as rt, ConditionalRuleGroups as s, canonicalFieldGroupHash as st, AnyFieldDefinition as t, TextSettings as tt, EmbedSettings as u, fieldBlockDocuments as ut, FieldKey as v, fieldValueNodes as vt, FieldsDefinitionOrigin as w, fieldsOperationReceipts as wt, FieldType as x, fieldsImportStaging as xt, FieldPath as y, fieldValues as yt, LocationRuleGroups as z };