package backuping

import (
	"time"

	"github.com/google/uuid"
)

type BackupToNodeRelation struct {
	NodeID     uuid.UUID   `json:"nodeId"`
	BackupsIDs []uuid.UUID `json:"backupsIds"`
}

type BackupNode struct {
	ID            uuid.UUID `json:"id"`
	ThroughputMBs int       `json:"throughputMBs"`
	LastHeartbeat time.Time `json:"lastHeartbeat"`
}

type BackupNodeStats struct {
	ID            uuid.UUID `json:"id"`
	ActiveBackups int       `json:"activeBackups"`
}

type BackupSubmitMessage struct {
	NodeID         uuid.UUID `json:"nodeId"`
	BackupID       uuid.UUID `json:"backupId"`
	IsCallNotifier bool      `json:"isCallNotifier"`
}

type BackupCompletionMessage struct {
	NodeID   uuid.UUID `json:"nodeId"`
	BackupID uuid.UUID `json:"backupId"`
}
