Phase 1C: Frontend unified contact UI
This commit is contained in:
@@ -12,9 +12,9 @@ from app.core.db import Base, TenantMixin
|
||||
|
||||
|
||||
class Address(Base, TenantMixin):
|
||||
"""Polymorphic address entity — multiple addresses per company or contact.
|
||||
"""Polymorphic address entity — multiple addresses per contact.
|
||||
|
||||
entity_type: 'company' or 'contact'
|
||||
entity_type: 'contact'
|
||||
entity_id: FK to companies.id or contacts.id
|
||||
address_type: billing, shipping, headquarters, branch, private, other
|
||||
is_default: one default address per (entity_type, entity_id, address_type)
|
||||
|
||||
Reference in New Issue
Block a user