A: Remove 5 address fields from Contact — addresses now via Address model
This commit is contained in:
@@ -3,11 +3,9 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import uuid
|
||||
from datetime import datetime
|
||||
|
||||
from sqlalchemy import (
|
||||
Boolean,
|
||||
DateTime,
|
||||
ForeignKey,
|
||||
Index,
|
||||
String,
|
||||
@@ -42,12 +40,6 @@ class Contact(Base, TenantMixin):
|
||||
department: Mapped[str | None] = mapped_column(String(100), nullable=True)
|
||||
linkedin_url: Mapped[str | None] = mapped_column(String(500), nullable=True)
|
||||
notes: Mapped[str | None] = mapped_column(Text, nullable=True)
|
||||
# Address fields (private address, may differ from company)
|
||||
address_street: Mapped[str | None] = mapped_column(String(255), nullable=True)
|
||||
address_city: Mapped[str | None] = mapped_column(String(100), nullable=True)
|
||||
address_zip: Mapped[str | None] = mapped_column(String(20), nullable=True)
|
||||
address_country: Mapped[str | None] = mapped_column(String(2), nullable=True)
|
||||
address_state: Mapped[str | None] = mapped_column(String(100), nullable=True)
|
||||
created_by: Mapped[uuid.UUID | None] = mapped_column(
|
||||
PGUUID(as_uuid=True), ForeignKey("users.id", ondelete="SET NULL"), nullable=True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user