Editer SQLAlcemy to Declarative