fix: change PlantBase id and company_id to str type
This commit is contained in:
parent
903d2cfb0b
commit
6ae0322918
|
|
@ -10,8 +10,10 @@ from datetime import datetime
|
||||||
|
|
||||||
class PlantBase(BaseModel):
|
class PlantBase(BaseModel):
|
||||||
"""발전소 기본 정보 스키마"""
|
"""발전소 기본 정보 스키마"""
|
||||||
id: int
|
model_config = {"from_attributes": True}
|
||||||
company_id: int
|
|
||||||
|
id: str # DB에서 문자열 형식 사용
|
||||||
|
company_id: str # DB에서 문자열 형식 사용
|
||||||
name: str
|
name: str
|
||||||
capacity: Optional[float] = Field(None, description="발전 용량 (kW)")
|
capacity: Optional[float] = Field(None, description="발전 용량 (kW)")
|
||||||
location: Optional[str] = Field(None, description="발전소 위치")
|
location: Optional[str] = Field(None, description="발전소 위치")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user