save code
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from app.database.database import engine, Base
|
||||
from app.models import User, Project, ProjectHistory
|
||||
|
||||
|
||||
def init_db():
|
||||
"""初始化数据库"""
|
||||
print("Creating database tables...")
|
||||
Base.metadata.create_all(bind=engine)
|
||||
print("Database tables created successfully!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
init_db()
|
||||
Reference in New Issue
Block a user