node_pending_reset.go 567 B

1234567891011
  1. package model
  2. // NodePendingReset is a client traffic reset a hosting node has not confirmed;
  3. // until it lands the node still counts pre-reset usage, so every sync replays it.
  4. type NodePendingReset struct {
  5. Id int `json:"id" gorm:"primaryKey;autoIncrement"`
  6. NodeId int `json:"nodeId" gorm:"uniqueIndex:idx_node_pending_reset,priority:1;not null"`
  7. Email string `json:"email" gorm:"uniqueIndex:idx_node_pending_reset,priority:2;not null"`
  8. // QueuedAt (ns) tells a delivery apart from a reset re-queued while it ran.
  9. QueuedAt int64 `json:"queuedAt"`
  10. }