Skip to content

Commit 2a35a08

Browse files
committed
fix: make parameters and created fields nullable in Report model
1 parent 0db6393 commit 2a35a08

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

DashAI/back/dependencies/database/models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,12 @@ class Report(Base):
397397
)
398398
huey_id: Mapped[str] = mapped_column(String, nullable=True)
399399
report_name: Mapped[str] = mapped_column(String, nullable=False)
400-
parameters: Mapped[JSON] = mapped_column(JSON)
400+
parameters: Mapped[JSON] = mapped_column(JSON, nullable=True)
401401
artifacts_path: Mapped[str] = mapped_column(String, nullable=True)
402402
plot_overrides: Mapped[JSON] = mapped_column(JSON, nullable=True)
403-
created: Mapped[DateTime] = mapped_column(DateTime, default=datetime.now)
403+
created: Mapped[DateTime] = mapped_column(
404+
DateTime, default=datetime.now, nullable=True
405+
)
404406
status: Mapped[Enum] = mapped_column(
405407
Enum(ReportStatus), nullable=False, default=ReportStatus.NOT_STARTED
406408
)

0 commit comments

Comments
 (0)