- migration writer now emits unique constraints (direct apply and live diff
previously dropped them); idempotent via the existing DO block
- unique constraint adopts a same-named model unique index with
ADD CONSTRAINT ... UNIQUE USING INDEX instead of building a second index
- dbml reader names unnamed unique indexes ukey_<table>_<cols> to match the
unique constraint naming
- foreign key deferral: Constraint.Deferrable/InitiallyDeferred are *bool
(nil = unspecified, never diffed); writers emit DEFERRABLE, DEFERRABLE
INITIALLY DEFERRED and NOT DEFERRABLE; live reader reads condeferrable and
condeferred; dbml reader/writer support deferrable and initially deferred
- tests and README/naming docs updated
* Introduce `--flatten-schema` flag to convert, merge, and split commands.
* Modify database writing functions to support flattened schema names.
* Update template functions to handle schema.table naming convention.
* Enhance PostgreSQL writer to utilize flattened schema in generated SQL.
* Update tests to ensure compatibility with new flattening feature.
* Dependencies updated for improved functionality.
* Introduce new templates for creating unique, check, and foreign key constraints with existence checks.
* Add templates for setting sequence values and creating sequences.
* Refactor existing SQL generation logic to utilize new templates for better maintainability and readability.
* Ensure identifiers are properly quoted to handle special characters and reserved keywords.