Fastapi Path Validation Definition In Database