13 lines
321 B
Python
13 lines
321 B
Python
from database import engine, Base
|
|
|
|
def create_tables():
|
|
print("Creating tables in database...")
|
|
try:
|
|
Base.metadata.create_all(bind=engine)
|
|
print("Tables created successfully!")
|
|
except Exception as e:
|
|
print(f"Error creating tables: {e}")
|
|
|
|
if __name__ == "__main__":
|
|
create_tables()
|