remove duplicated code

This commit is contained in:
2026-02-06 07:30:20 -03:00
parent 30b2e1cf44
commit 26bd158c47
43 changed files with 12 additions and 2528 deletions

View File

@@ -9,25 +9,25 @@ cd "$(dirname "$0")/.."
echo "Generating models from schema/models..."
# Django ORM models
python -m tools.modelgen from-schema \
python -m modelgen from-schema \
--schema schema/models \
--output mpr/media_assets/models.py \
--targets django
# Pydantic schemas for FastAPI
python -m tools.modelgen from-schema \
python -m modelgen from-schema \
--schema schema/models \
--output api/schemas/models.py \
--targets pydantic
# TypeScript types for Timeline UI
python -m tools.modelgen from-schema \
python -m modelgen from-schema \
--schema schema/models \
--output ui/timeline/src/types.ts \
--targets typescript
# Protobuf for gRPC
python -m tools.modelgen from-schema \
python -m modelgen from-schema \
--schema schema/models \
--output mpr/grpc/protos/worker.proto \
--targets proto