Skip to content

Database models and migrations #13

Description

@troyscott

Description

Set up SQLModel ORM with Alembic migrations connecting to Azure SQL via managed identity.

Key points

  • Connection via managed identity (no passwords): azure-identity + pyodbc
  • SQLModel for Pydantic + SQLAlchemy integration
  • Alembic for schema migrations
  • Seed data script for initial setup

Acceptance criteria

  • SQLModel models defined
  • Alembic configured with migration scripts
  • Connection uses managed identity in Azure, connection string locally
  • Seed data script creates initial records
  • Migrations run as part of deployment

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appFastAPI/HTMX application codeazureAzure services and configuration

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions