from fastapi import FastAPI
from api import router
from settings.datastore import dbengine
from sqlmodel import SQLModel
app = FastAPI()
#include app api routers
router.add_routers(app)
SQLModel.metadata.create_all(dbengine)

@app.get("/")
def main(): 
    return {
        "message": "Welcome to pilot"
    }
sqlmodel.SQLModel.metadata.create_all api.router.add_routers fastapi.FastAPI
[((127, 136), 'fastapi.FastAPI', 'FastAPI', ([], {}), '()\n', (134, 136), False, 'from fastapi import FastAPI\n'), ((162, 185), 'api.router.add_routers', 'router.add_routers', (['app'], {}), '(app)\n', (180, 185), False, 'from api import router\n'), ((186, 224), 'sqlmodel.SQLModel.metadata.create_all', 'SQLModel.metadata.create_all', (['dbengine'], {}), '(dbengine)\n', (214, 224), False, 'from sqlmodel import SQLModel\n')]