Unified contacts model: Rentman-style type field (company/person), inline addresses, ContactPerson 1:N, all Rentman fields except rental-specific

This commit is contained in:
Agent Zero
2026-07-19 21:12:49 +02:00
parent d80feb2a3a
commit cf75680583
14 changed files with 1411 additions and 869 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ async def migrate_existing_addresses(db: AsyncSession) -> int:
"""Migrate existing address fields from companies/contacts to Address records.
Called during migration 0013. Returns count of created addresses.
"""
from app.models.company import Company
from app.models.contact import Contact as Company
from app.models.contact import Contact
count = 0