// RegisterCallbacks register callback into GORM DB
RegisterCallbacks register callback into GORM DB
// RegisterCallbacks register callback into GORM DB
func RegisterCallbacks(db *gorm.DB) {
	callback := db.Callback()
	if callback.Create().Get("consistently:before_create") == nil {
		callback.Create().Before("gorm:before_create").Register("consistently:before_create", callbackConsistently)
	}
	if callback.Update().Get("consistently:before_update") == nil {
		callback.Update().Before("gorm:before_update").Register("consistently:before_update", callbackConsistently)
	}
}
func RegisterCallbacks ( db * gorm . DB ) { callback := db . Callback ( ) if callback . Create ( ) . Get ( " " ) == nil { callback . Create ( ) . Before ( " " ) . Register ( " " , callbackConsistently ) } if callback . Update ( ) . Get ( " " ) == nil { callback . Update ( ) . Before ( " " ) . Register ( " " , callbackConsistently ) } }
RegisterCallbacks register callback into GORM DB
RegisterCallbacks register callback into GORM DB