from typing import List, Optional
from pydantic import BaseModel


class LocationCreate(BaseModel):
    camp_id: int
    latitude: float
    longitude: float


class Location(LocationCreate):
    id: int


    class Config:
        orm_mode = True

46126196cd027866302d4903fce5daba6f512064
<mask token>

<mask token>


class Location(LocationCreate):
    id: int


    class Config:
        orm_mode = True

<mask token>


class LocationCreate(BaseModel):
    camp_id: int
    latitude: float
    longitude: float


class Location(LocationCreate):
    id: int


    class Config:
        orm_mode = True

from typing import List, Optional
from pydantic import BaseModel


class LocationCreate(BaseModel):
    camp_id: int
    latitude: float
    longitude: float


class Location(LocationCreate):
    id: int


    class Config:
        orm_mode = True
