API reference / @evolu/common / Evolu/Internal / ValidateNoDefaultColumns
Type Alias: ValidateNoDefaultColumns<S>
type ValidateNoDefaultColumns<S> = keyof S extends infer TableName
? TableName extends keyof S
? keyof S[TableName] extends infer ColumnName
? ColumnName extends keyof S[TableName]
? ColumnName extends "createdAt" | "updatedAt" | "isDeleted"
? SchemaValidationError<`Table "${TableName & string}" uses default column name "${ColumnName & string}". Default columns (createdAt, updatedAt, isDeleted) are added automatically.`>
: never
: never
: never
: never
: never;
Defined in: packages/common/src/Evolu/Schema.ts:125
Type Parameters
Type Parameter |
---|
S extends EvoluSchema |