17 lines
434 B
Python
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()
|