aboutsummaryrefslogtreecommitdiff
path: root/inventory-service/app/init_db.py
blob: 0d6370e5023447dbaebf002075a9fa92db31e138 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from app.core.database import engine, Base

from app.models.inventory import Product, StockMovement, ProcessedEvent  # noqa: F401


def init_database():
    print("Creating inventory database tables...")
    Base.metadata.create_all(bind=engine)
    print("Inventory database initialized successfully! 🎉")


if __name__ == "__main__":
    init_database()