• Blog
  • Changelog
  • Follow us on GitHubFollow us on XJoin our Discord server
  • Blog
  • GitHub
  • Releases
  • Getting started

    • Overview
  • Library

    • Getting started
    • Array
    • Result
    • Dependency injection
    • Resource management
    • Task
    • Type
    • Conventions
  • Local-first

    • Getting started
    • Playgrounds
    • Examples
    • Owners
    • Relay
    • Migrations
    • Time travel
    • Indexes
    • Protocol
    • Privacy
    • FAQ
  • Other

    • API reference
    • Comparison
    • Showcase
    • Changelog

API reference › @evolu/common › local‑first/Schema › ValidateSchemaHasId

type ValidateSchemaHasId<S> = keyof S extends infer TableName
  ? TableName extends keyof S
    ? "id" extends keyof S[TableName]
      ? never
      : SchemaValidationError<`Table "${TableName & string}" is missing required id column.`>
    : never
  : never;

Defined in: packages/common/src/local-first/Schema.ts:293

Markdown for LLMs

© 2026 Evolu

Follow us on GitHubFollow us on XJoin our Discord server