I do a simple query in Gorm:
err := db.Preload("users"). Where("orders.created_at >= now() - interval 3 day"). Find(&orders).