first commit

This commit is contained in:
Koncept Kit
2025-12-05 16:43:37 +07:00
commit 6ef7685ade
26 changed files with 2191 additions and 0 deletions

16
init_db.py Normal file
View File

@@ -0,0 +1,16 @@
"""
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()