Skip to content

Commit

Permalink
Merge pull request #714 from hotosm/mbtiles
Browse files Browse the repository at this point in the history
mbtiles model updated, added few fields
  • Loading branch information
nrjadkry authored Aug 13, 2023
2 parents 6da63aa + d447cc1 commit a74e562
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/backend/app/db/db_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,11 @@ class DbTilesPath(Base):
__tablename__ = "mbtiles_path"

id = Column(Integer, primary_key=True)
project_id = Column(String)
project_id = Column(Integer)
status = Column(Enum(BackgroundTaskStatus), nullable=False)
path = Column(String)
tile_source = Column(String)
task_id = Column(String)
created_at = Column(DateTime, default=timestamp)
created_at = Column(DateTime, default=timestamp)
created_by_id = Column(BigInteger, ForeignKey("users.id"), primary_key=True)
created_by = relationship(DbUser, backref="user_roles")

0 comments on commit a74e562

Please sign in to comment.