Database
GoFrame now fully relies on Gorm for database access. The generated provider exposes a *gorm.DB
as the main entry point and also returns the underlying *sql.DB
handle when you really need it.
See Connection for how the provider is wired, Migrations for schema updates and Seeds for populating data.
Identifier generation
Models typically use string primary keys generated with a short prefix followed by a cuid2 value. Prefixes help distinguish record types while cuid2 provides globally unique, sortable identifiers without coordination.
Last updated on