gendesign/backend/app/models/parcel.py
Light1YT 249182b678
All checks were successful
CI / frontend-tests (pull_request) Successful in 1m2s
CI / openapi-codegen-check (push) Successful in 2m13s
CI / openapi-codegen-check (pull_request) Successful in 1m45s
CI / backend-tests (push) Successful in 9m29s
CI / backend-tests (pull_request) Successful in 9m29s
CI / changes (push) Successful in 8s
CI / changes (pull_request) Successful in 8s
CI / frontend-tests (push) Successful in 1m7s
fix(week-review): дожим ревью — #1569, #1590, #1642 + feat #801 MSW-preview
Финиш-волна по cross-file/partial остаткам аудита + a11y-харнесс.

Полностью (4): #1569 alembic регистрирует все ORM-модели (+убран фантомный Parcel) ·
#1590 «Индекс дефицита» больше не лжёт на fallback-горизонте (report_pdf+report_md) ·
#1642 thumbs mtime-freshness (нет устаревшей миниатюры) ·
#801 /__preview/estimate mock-render для axe/lighthouse (env-gated bypass).

Частично (остаток cross-file/домен, открыты): #1593 #1635 #1640.
needs-leha (открыт): #1650 (нужна новая миграция вьюхи supply-слоёв).

Verify: tsc --noEmit 0; py_compile OK.

Closes #1569
Closes #1590
Closes #1642
Closes #801
2026-06-17 11:24:34 +05:00

15 lines
601 B
Python

"""Parcel ORM placeholder.
The legacy `Parcel` model (`__tablename__ = "parcels"`) was removed: nothing in
the app imports it, and real cadastral data lives in raw-SQL tables
`cad_parcels` / `cad_parcels_geom` (see data/sql/92_cad_bulk_layers.sql,
data/sql/83_cad_parcels_geom.sql), not in a `parcels` table. Keeping the model
on Base.metadata made `alembic revision --autogenerate` emit a phantom
`CREATE TABLE parcels` for a table that must never exist (issue #1569).
No ORM model is defined here. `Base` is re-exported for import continuity.
"""
from app.core.db import Base
__all__ = ["Base"]