Can schema be generated automatically?

Yes—best practice is generating from structured content models. Automation reduces drift and keeps schema aligned with UI.