From 01556534f271fe872f07bc20d7cc4aac8dccacb1 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 company schemas --- app/schemas/company.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/schemas/company.py b/app/schemas/company.py index fde5331..422fbbf 100644 --- a/app/schemas/company.py +++ b/app/schemas/company.py @@ -13,6 +13,11 @@ class CompanyCreate(BaseModel): email: str | None = Field(None, max_length=255) website: str | None = Field(None, max_length=500) description: 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 CompanyUpdate(BaseModel): @@ -23,6 +28,11 @@ class CompanyUpdate(BaseModel): email: str | None = Field(None, max_length=255) website: str | None = Field(None, max_length=500) description: 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 CompanyResponse(BaseModel): @@ -34,6 +44,11 @@ class CompanyResponse(BaseModel): email: str | None = None website: str | None = None description: 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