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:PkkneZrSFsnJR6B@db.vfhoydxvxuesxhrcdnmx.supabase.co:5432/postgres"
# )
# development
# dbLink = "postgresql+asyncpg://postgres:zJAkapOh3IVt8R0h@db.mygpwobpwxttmilnxrtu.supabase.co:5432/postgres"
dbLink = "postgresql+asyncpg://postgres:PkkneZrSFsnJR6B@db.vfhoydxvxuesxhrcdnmx.supabase.co:5432/postgres"
database = databases.Database(dbLink)
models = orm.ModelRegistry(database=database)