You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(db): own a dedicated Postgres schema and ship SQL migrations with migrate and export commands #374
The API's tables live in the default schema, alongside whatever the adopter's app owns. Adopters sharing a database with their app hit ORM drift detection (prisma migrate dev sees unknown tables and offers a reset; drizzle-kit needs a schemaFilter). Migrations are sequelize-cli .cjs files that only this repo's tooling can run.
Proposal
Tables in a configurable schema (default seamless_auth) via search_path, with the migrations table inside it
Plain numbered SQL as the migration source of truth, converted from the existing sequelize-cli chain, with an upgrade path for existing deployments
Run on boot or through a migrate command for teams that do not run DDL at boot; assertSchemaCurrent keeps its role
migrations export --format prisma|drizzle|knex|flyway|raw for organisations that review every DDL change
Docs: one-line ORM config to ignore the schema, and referencing users by ID
Activity