from datetime import datetime
from pydantic import BaseModel
from ..core.gps_point import GPSPoint
from ..core.camera_parameters import CameraParameters
from .waypoint import Waypoint
from .geofences import Geofences


class Flight(BaseModel):
    id: str
    name: str
    description: str
    start_gps: GPSPoint
    waypoints: list[Waypoint]
    geofences: Geofences
    camera_params: CameraParameters
    altitude: float
    created_at: datetime
    updated_at: datetime

