24 lines
568 B
Python
24 lines
568 B
Python
|
|
"""Company schema (minimal for cross-tenant test)."""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from pydantic import BaseModel, Field
|
||
|
|
|
||
|
|
|
||
|
|
class CompanyCreate(BaseModel):
|
||
|
|
name: str = Field(..., min_length=1, max_length=100)
|
||
|
|
industry: str | None = None
|
||
|
|
phone: str | None = None
|
||
|
|
email: str | None = None
|
||
|
|
website: str | None = None
|
||
|
|
description: str | None = None
|
||
|
|
|
||
|
|
|
||
|
|
class CompanyResponse(BaseModel):
|
||
|
|
id: str
|
||
|
|
name: str
|
||
|
|
industry: str | None = None
|
||
|
|
phone: str | None = None
|
||
|
|
email: str | None = None
|
||
|
|
annual_revenue: float | None = None
|