Skip to content

Commit

Permalink
Add Map ID Column to Ingest Table
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Feb 14, 2024
1 parent 02c4129 commit 13999c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,11 @@ class IngestState(enum.Enum):
class IngestProcess(Base):
__tablename__ = "ingest_process"
__table_args__ = {'schema': 'macrostrat'}
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)

id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
state: Mapped[str] = mapped_column(Enum(IngestState, name="ingest_state"), 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)
access_group_id: Mapped[int] = mapped_column(ForeignKey("macrostrat_auth.group.id"), nullable=True)
object_group_id: Mapped[ObjectGroup] = mapped_column(ForeignKey("storage.object_group.id"))
Expand Down

0 comments on commit 13999c4

Please sign in to comment.