Files
membership-be/init_db.py
Koncept Kit 6ef7685ade first commit
2025-12-05 16:43:37 +07:00

17 lines
434 B
Python

"""
Database initialization script.
Creates all tables defined in models.py
"""
from database import Base, engine
from models import User, Event, EventRSVP, SubscriptionPlan, Subscription
def init_database():
"""Create all database tables"""
print("Creating database tables...")
Base.metadata.create_all(bind=engine)
print("✅ Database tables created successfully!")
if __name__ == "__main__":
init_database()