item-create
This commit is contained in:
parent
7c35097c88
commit
039b877241
4 changed files with 31 additions and 21 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue