|
|
|
|
|
by andix
1224 days ago
|
|
There are two ways to achieve a single source of truth: 1. Generate ORM entities from the database (usually there is a too for that)
2. Generate the database from ORM entities, and make changes via generated/manual migrations You are supposed not to edit the generated side, just re-generate it on a change of the model. |
|