chore: establish project baseline

This commit is contained in:
OpenCode
2026-09-21 15:51:47 -03:00
commit 9dcc263217
459 changed files with 447890 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
"""Seed reviewed official legacy NCM evidence; it never selects a successor."""
from central.app.db import SessionLocal
from central.app.models import LegacyNcmEntry
LEGACY_NCM = {
"code": "02071400",
"source": "Siscomex NCM official nomenclature download",
"source_date": "2026-09-17",
"reason": "NCM not present in current official nomenclature; no official successor.",
}
def main():
with SessionLocal() as session:
entry = session.get(LegacyNcmEntry, LEGACY_NCM["code"])
if entry is None:
session.add(LegacyNcmEntry(**LEGACY_NCM, successor_code=None))
session.commit()
print({"code": LEGACY_NCM["code"], "status": "LEGACY_NCM", "successor_code": None})
if __name__ == "__main__":
main()