diff options
| author | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-03-17 14:11:45 +0200 |
|---|---|---|
| committer | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-03-17 14:11:45 +0200 |
| commit | 47fd81a5910eab3483f79d03eedf9307bc81252f (patch) | |
| tree | 3e1ebd1bddcea649eb968e65161555afd4c2898c /app/utils/create_tables.py | |
| parent | f01cb6703710b7df4c7c022047cd35e1d5e9c70e (diff) | |
simple registration prototype
Diffstat (limited to 'app/utils/create_tables.py')
| -rw-r--r-- | app/utils/create_tables.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/utils/create_tables.py b/app/utils/create_tables.py new file mode 100644 index 0000000..bb9baf3 --- /dev/null +++ b/app/utils/create_tables.py @@ -0,0 +1,8 @@ +# app/utils/create_tables.py +from app.models.user import Base +from app.utils.db import engine + + +async def init_db(): + async with engine.begin() as conn: + await conn.run_sync(Base.metadata.create_all) |
