cx-database-schema
Installation
SKILL.md
DATABASE_SCHEMA_SPEC
How to write a migration + Sequelize model in this repo.
Reference implementation:
- Migration:
cx-saas-server/migrations/20250320070220-create-deep-analysis.js - Model:
cx-saas-server/packages/cx-datastore/src/models/DeepAnalysis.model.ts
Golden rule: the migration's columns and the model's init() columns must match
1:1. Migration builds the table; model maps to it. Keep them in lockstep.