import os

from flask_marshmallow import Marshmallow
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from flask_idempotency import Idempotency

db = SQLAlchemy(session_options={"autocommit": True})

idempotency = Idempotency()

marshmallow = Marshmallow()

migrate = Migrate(directory=os.path.join(os.path.dirname(os.path.abspath(__file__)), "migrations"))
