Open sinkevichmm opened 2 years ago
Because gorm.io/gorm is orm database and i use gorm orm for my application for interaction with database, beforeCreate is method from gorm this is hooks, check gorm documentation for more information about hooks, maybe next time, i will change gorm to gopg.
Of course i understand for what beforeCreate) In this case ModelStudent or ModelAuth is a business entity and "gorm.io/gorm" is a detail subject to change. Now you model depends on the detail. Do you agree?
yes correct
Hello! Why does your model have a dependency like "gorm.io/gorm". you will be forced to change the model if: