Skip to content

Commit

Permalink
Update the ingest process to publish associated sources
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Feb 27, 2024
1 parent 17b3243 commit 4524a5a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,20 @@ class IngestState(enum.Enum):
abandoned = "abandoned"


class IngestType(enum.Enum):
raster = "vector"
ta1_output = "ta1_output"


class IngestProcess(Base):
__tablename__ = "ingest_process"
__table_args__ = {'schema': 'macrostrat'}

id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)

state: Mapped[str] = mapped_column(Enum(IngestState, name="ingest_state"), nullable=True)
type: Mapped[str] = mapped_column(Enum(IngestType, name="ingest_type"), nullable=True)

comments: Mapped[str] = mapped_column(TEXT, nullable=True)
map_id: Mapped[str] = mapped_column(TEXT, nullable=True)
source_id: Mapped[int] = mapped_column(ForeignKey("maps.sources.source_id"), nullable=True)
Expand Down

0 comments on commit 4524a5a

Please sign in to comment.