mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add notification deduplication trigger (#14172)
This commit is contained in:
@@ -2116,6 +2116,8 @@ type NotificationMessage struct {
|
||||
LeasedUntil sql.NullTime `db:"leased_until" json:"leased_until"`
|
||||
NextRetryAfter sql.NullTime `db:"next_retry_after" json:"next_retry_after"`
|
||||
QueuedSeconds sql.NullFloat64 `db:"queued_seconds" json:"queued_seconds"`
|
||||
// Auto-generated by insert/update trigger, used to prevent duplicate notifications from being enqueued on the same day
|
||||
DedupeHash sql.NullString `db:"dedupe_hash" json:"dedupe_hash"`
|
||||
}
|
||||
|
||||
type NotificationPreference struct {
|
||||
|
||||
Reference in New Issue
Block a user