Tables

tables is a directory okm check reads for orphan table files.

tables is a directory okm check reads for orphan table files. The name is the file name without .ts. That text has to appear in the schema module source.

CaseResult
omittedThe directory is not read.
a .ts name absent from the schema moduleOKM1024.
not .tsSkipped.
a name that starts with .Skipped.

okm check lists the files in that directory. A folder inside is not opened. A missing directory is an empty list.

okmodel.config.ts
import { defineConfig } from "okmodel/migrate";

export default defineConfig({
  schema: "./schema.ts",
  tables: "./tables", 
  database: process.env.DATABASE_URL!,
});

OKM1024

Table file not in schema: extra.ts. Add the file's table to the schema() call that okm check reads.