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

    • Overview
  • Local-first

    • Getting started
    • Playgrounds
    • Examples
    • React Native
    • Schema
    • Local auth
    • Queries
    • Sync
    • Relay
    • Privacy
    • Indexes
    • Time travel
    • Owners
    • Protocol
    • FAQ
  • Library

    • Getting started
    • Array
    • Result
    • Dependency injection
    • Resource management
    • Type
    • Task
    • Conventions
    • Testing
    • Assert
  • Other

    • Comparison
    • Supply chain
    • Showcase
    • Upgrading
    • Changelog

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

type ValidateSchemaHasId<S extends EvoluSchema> =
  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:778

Requires an id column in every table.

Markdown for LLMs

© 2026 Evolu

Follow us on GitHubFollow us on XJoin our Discord server