Skip to content

feat(country): add Country domain — model, repository, service, migration #13

Description

@ChechiDev

Summary

Implement the full Country domain as the first step of the Phase 1 scraping pipeline.

Changes needed

  • Country SQLModel table with country_code (string PK), country_name, url_path (unique), and url @Property
  • CountryCreate, CountryRead (with @computed_field url), CountryUpdate schemas
  • CountryNotFoundError, CountryScrapingError exceptions
  • AbstractCountryRepository, AbstractCountryScraper interfaces
  • CountryRepository (async SQLModel implementation)
  • CountryService with get() and get_all()
  • Alembic migration b3c4e7a9f210_create_country_table
  • Fix TimestampMixin to use sa_type + sa_column_kwargs instead of shared sa_column=Column(...) instance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions