Refactor database models and schemas to allow nullable fields; update init_database function for improved initialization.
This commit is contained in:
@@ -32,7 +32,6 @@ db_dependency = Annotated[Session, Depends(get_db)]
|
||||
def init_database():
|
||||
"""Initialize the database by creating all tables"""
|
||||
Base.metadata.create_all(bind=engine)
|
||||
print("Database initialized successfully!")
|
||||
|
||||
|
||||
def get_session_sync() -> Session:
|
||||
|
||||
Reference in New Issue
Block a user