feat: cron worker for renewal notifs

This commit is contained in:
2026-08-20 21:28:43 +07:00
parent 0a58a41930
commit b39cae8046
6 changed files with 161 additions and 4 deletions

View File

@@ -23,9 +23,7 @@ class ServiceNotification(Base):
notify_type: Mapped[NotificationType] = mapped_column(
Enum(NotificationType, name="notificationtype"), nullable=False
)
sub_expires_at: Mapped[datetime] = mapped_column(
DateTime(timezone=True), unique=True, nullable=False
)
sub_expires_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), nullable=False)
status: Mapped[NotificationStatus] = mapped_column(
Enum(NotificationStatus, name="notificationstatus"),