// The plugin's tables, where the platform looks for them. // // `scripts/gen-plugin-schemas.ts` writes `plugin-schemas.gen.ts` from every plugin's `db/schema.ts`, and // that generated barrel is what `bun db:push` reads. So this file exists to be FOUND — the definitions // themselves live beside the code that queries them, in `sidecar/db/`, and are re-exported here rather // than duplicated. // // Two tables, not three: `atelier_providers` is gone. A provider is a curated vendor plus a key in the // platform's secret store, so there is no provider state in Postgres to keep — see // sidecar/providers/credentials.ts. // // Everything is `atelier_`-prefixed and lives in officer_db, exactly like every other plugin. The // extraction originally kept Atelier's own `atelier` database, on the reasoning that its tables already // had rows. That was reversed on 2026-08-20: the plugin starts EMPTY here, and the standalone service's // data is migrated deliberately afterwards, with someone watching. A plugin that behaves differently // from every other plugin is a plugin nobody can reason about. export * from '../sidecar/db/collections/schema'; export * from '../sidecar/db/generations/schema';