plug task enqueing properly

This commit is contained in:
2026-02-06 10:49:05 -03:00
parent 2cf6c89fbb
commit 013587d108
20 changed files with 413 additions and 356 deletions

View File

@@ -8,29 +8,33 @@ cd "$(dirname "$0")/.."
echo "Generating models from schema/models..."
# Django ORM models
# Django ORM models: domain models + enums
python -m modelgen from-schema \
--schema schema/models \
--output mpr/media_assets/models.py \
--targets django
--targets django \
--include dataclasses,enums
# Pydantic schemas for FastAPI
# Pydantic schemas for FastAPI: domain models + enums
python -m modelgen from-schema \
--schema schema/models \
--output api/schemas/models.py \
--targets pydantic
--targets pydantic \
--include dataclasses,enums
# TypeScript types for Timeline UI
# TypeScript types for Timeline UI: domain models + enums + API types
python -m modelgen from-schema \
--schema schema/models \
--output ui/timeline/src/types.ts \
--targets typescript
--targets typescript \
--include dataclasses,enums,api
# Protobuf for gRPC
# Protobuf for gRPC: gRPC messages + service
python -m modelgen from-schema \
--schema schema/models \
--output rpc/protos/worker.proto \
--targets proto
--targets proto \
--include grpc
# Generate gRPC stubs from proto
echo "Generating gRPC stubs..."