File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,14 +53,19 @@ class SqlmapScanPayload(Base):
5353
5454 id : Mapped [int ] = mapped_column (primary_key = True , autoincrement = True )
5555
56- task_id : Mapped [int ] = mapped_column (Text , nullable = False )
56+ task_id : Mapped [str ] = mapped_column (Text , nullable = False )
5757
5858 status : Mapped [ScanStatus ] = mapped_column (
5959 Enum (ScanStatus , name = "scan_status_enum" ),
6060 nullable = False ,
6161 default = ScanStatus .pending ,
6262 )
6363
64+ celery_task_id : Mapped [str ] = mapped_column (
65+ String (64 ),
66+ nullable = False ,
67+ )
68+
6469 scan_url : Mapped [str | None ] = mapped_column (String (2048 ), nullable = False )
6570
6671 scan_level : Mapped [int ] = mapped_column (Integer , nullable = False )
@@ -99,3 +104,8 @@ class SqlmapScanLog(Base):
99104 default = datetime .utcnow ,
100105 index = True ,
101106 )
107+
108+ celery_task_id : Mapped [int ] = mapped_column (
109+ String (64 ),
110+ nullable = False ,
111+ )
You can’t perform that action at this time.
0 commit comments