THIS. And it's regulated (though often under-regulated) for damn good reasons. Properly designing even a "little" dam is far more difficult that most people appreciate. And both construction and upkeep (which is necessary, forever) are really expensive. Maybe start reading here: https://practical.engineering/blog/2021/10/14/what-really-ha...