Skip to content

feat(api): unify source models to OilAndGasFieldSourceData#2

Draft
mbarlow12 wants to merge 5 commits intomainfrom
etl-model
Draft

feat(api): unify source models to OilAndGasFieldSourceData#2
mbarlow12 wants to merge 5 commits intomainfrom
etl-model

Conversation

@mbarlow12
Copy link
Contributor

Summary

  • Replace four heterogeneous source entity/ORM pairs (GEM, WM, RMI, CC) with a unified schema based on OilAndGasFieldSourceData from stitch-resources
  • Remove CC (CCReservoirsSourceModel, CCReservoirsData, CCReservoirsSource) entirely
  • Entity aliases: GemData = OilAndGasFieldSourceData, etc. — all sources share identical column definitions
  • All 18 field columns now live on SourceBase; subclasses only define __tablename__
  • Add stitch-resources package with OilAndGasFieldSourceData, Owner, Operator models

Test plan

  • All 60 API tests pass (uv run --package stitch-api --exact pytest deployments/api/tests/ -xvs)
  • Ruff linter clean (ruff check deployments/api/)
  • Verify seed data works with docker compose up (dev seed profile)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant