item-create

This commit is contained in:
bdrtr 2025-05-08 22:43:42 +03:00
parent 7c35097c88
commit 039b877241
4 changed files with 31 additions and 21 deletions

View file

@ -30,7 +30,7 @@ class Base(DeclarativeBase):
def init_db():
#Base.metadata.drop_all(engine) # Veritabanını her başlangıcta siler burayada dikkat !!!!!!!!
Base.metadata.create_all(bind=engine)
Base.metadata.create_all(bind=engine) # Veritabanını oluşturur
# Session dependency (FastAPI için)
def get_session_db():