tranny / App /modelInit.py
Mbonea's picture
jwt works the routes are secured!
591d823
raw
history blame
512 Bytes
import databases
import orm, asyncio
# deployment
# database = databases.Database(
# "postgresql+asyncpg://postgres:[email protected]:5432/postgres"
# )
# development
# dbLink = "postgresql+asyncpg://postgres:[email protected]:5432/postgres"
dbLink = "postgresql+asyncpg://postgres:[email protected]:5432/postgres"
database = databases.Database(dbLink)
models = orm.ModelRegistry(database=database)