feat: process uploads through Redis worker and SSE
This commit is contained in:
parent
a82dc33f23
commit
cee69acbdc
3 changed files with 14 additions and 10 deletions
|
|
@ -144,6 +144,8 @@ class UploadItem(Base):
|
|||
file_name: Mapped[str] = mapped_column(String(1024))
|
||||
content_type: Mapped[str] = mapped_column(String(255), default="application/octet-stream")
|
||||
size: Mapped[int] = mapped_column(Integer, default=0)
|
||||
width: Mapped[int] = mapped_column(Integer, default=0, server_default="0")
|
||||
height: Mapped[int] = mapped_column(Integer, default=0, server_default="0")
|
||||
r2_key: Mapped[str] = mapped_column(String(1024))
|
||||
status: Mapped[str] = mapped_column(String(32), default="pending", index=True)
|
||||
image_id: Mapped[str | None] = mapped_column(String(64), nullable=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue