mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-02 23:45:11 +03:00
6fe0bd86dd
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.
11 lines
482 B
Go
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"`
|
|
}
|