From 56bf044bb6f384b458a40fef894f8ec5ae4a8437 Mon Sep 17 00:00:00 2001 From: ramforth Date: Sun, 16 Nov 2025 18:16:10 +0100 Subject: [PATCH] Set up database.py :wq A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A B B B B B B A A --- main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.py b/main.py index b07f4d9..57e279f 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,13 @@ from fastapi import FastAPI +from . import models +from .database import engine + +# This line tells SQLAlchemy to create all the tables based on the models +# we defined. It will create the `multichat_overlay.db` file with the +# 'users' and 'settings' tables if they don't exist. +models.Base.metadata.create_all(bind=engine) + app = FastAPI() @app.get("/")