from pydantic import BaseModel, conint from typing import List, Optional class ReviewBase(BaseModel): location: str rating: int comment: str class ReviewCreate(ReviewBase): username: str class ReviewResponse(ReviewBase): id: int username: str class Config: from_attributes = True