Files
mirror-3x-ui/internal/database/model/node_pending_client_delete.go
T
Hamed Sanaei 6fe0bd86dd fix(nodes): retry permanent client deletes durably
Record node-wide deletes with the local mutation and replay them through the exclusive reconciliation turn. Match acknowledgments to the queued generation and supersede stale deletes when a client is recreated or reattached.
2026-12-02 13:31:40 +03:30

11 lines
482 B
Go

package model
// NodePendingClientDelete tracks a permanent delete that the node has not confirmed.
type NodePendingClientDelete struct {
NodeId int `gorm:"primaryKey;autoIncrement:false;index:idx_node_delete_order,priority:1"`
Email string `gorm:"primaryKey;index:idx_node_delete_order,priority:3"`
ClientId int `gorm:"not null"`
Generation string `gorm:"not null"`
LastAttemptAt int64 `gorm:"not null;index:idx_node_delete_order,priority:2"`
}