#!/usr/bin/env bash # Regenerates the generated section of docs/DATA-MODEL.md from the migrations (SPEC ยง18). # scripts/gen-datamodel.sh rewrite the section # scripts/gen-datamodel.sh --check only verify it is up to date (exit 1 if not) set -euo pipefail root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "$root" dotnet run --project tools/Khaemhat.DataModelTool -c Release -- "$@" docs/DATA-MODEL.md