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
The current implementation embeds a base struct with uuid.UUID and a default generator (uuid_generate_v4()), which makes the ORM opinionated and tightly coupled to PostgreSQL and a single ID generation strategy.
To keep tinhtinh/sqlorm minimal, flexible, and database-agnostic, this behavior should be removed from the core.
Scope:
Remove the embedded base model that enforces uuid.UUID as the default primary key.
Remove hardcoded dependency on uuid_generate_v4() in schema generation.
Ensure the ORM does not assume any ID type or generation strategy by default.
Leave ID strategy decisions to the application layer.
Expected Outcome:
Core ORM becomes neutral regarding primary key type and ID generation.
Better compatibility with different databases and legacy systems.
Reduced long-term maintenance and architectural constraints.
Activity