Resolve code duplication by embedding a base struct with common fields like ID and timestamps into multiple GORM models for consistent schema design.