fix: add missing created_at and deleted_at columns to notification_preferences
- Remove duplicate updated_at from NotificationPreference model (inherited from TimestampMixin) - Add migration 0018 to add created_at and deleted_at columns - Fixes 500 error on GET /notifications/types and /preferences
This commit is contained in:
@@ -85,6 +85,3 @@ class NotificationPreference(Base, TenantMixin):
|
||||
)
|
||||
type_key: Mapped[str] = mapped_column(String(20), nullable=False)
|
||||
is_enabled: Mapped[bool] = mapped_column(Boolean, nullable=False, default=True)
|
||||
updated_at: Mapped[datetime] = mapped_column(
|
||||
DateTime(timezone=True), nullable=False, server_default=func.now()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user