From 59c787ba66367a9795069ed29a2a1d4c4fbf0348 Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Sat, 4 Jul 2026 00:15:25 +0000 Subject: [PATCH] feat(core): add address fields to contact schemas --- app/schemas/contact.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/schemas/contact.py b/app/schemas/contact.py index 5f13118..8b9e55e 100644 --- a/app/schemas/contact.py +++ b/app/schemas/contact.py @@ -15,6 +15,11 @@ class ContactCreate(BaseModel): department: str | None = Field(None, max_length=100) linkedin_url: str | None = Field(None, max_length=500) notes: str | None = None + address_street: str | None = Field(None, max_length=255) + address_city: str | None = Field(None, max_length=100) + address_zip: str | None = Field(None, max_length=20) + address_country: str | None = Field(None, max_length=2) + address_state: str | None = Field(None, max_length=100) company_ids: list[str] | None = None @@ -28,6 +33,11 @@ class ContactUpdate(BaseModel): department: str | None = Field(None, max_length=100) linkedin_url: str | None = Field(None, max_length=500) notes: str | None = None + address_street: str | None = Field(None, max_length=255) + address_city: str | None = Field(None, max_length=100) + address_zip: str | None = Field(None, max_length=20) + address_country: str | None = Field(None, max_length=2) + address_state: str | None = Field(None, max_length=100) class ContactResponse(BaseModel): @@ -41,6 +51,11 @@ class ContactResponse(BaseModel): department: str | None = None linkedin_url: str | None = None notes: str | None = None + address_street: str | None = None + address_city: str | None = None + address_zip: str | None = None + address_country: str | None = None + address_state: str | None = None created_at: str | None = None updated_at: str | None = None